blob: 1b0b972edfa162d1ba08966ff361dafe3546418a [file] [log] [blame]
Chengyu Fan27887552015-03-26 17:12:00 -06001#!/usr/bin/env bash
2set -x
3set -e
4
Chengyu Fan71b712b2015-09-09 22:13:56 -06005COVERAGE=$( python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''" )
6
Chengyu Fan27887552015-03-26 17:12:00 -06007# Cleanup
8sudo ./waf -j1 --color=yes distclean
9
10# Configure/build in debug mode
11./waf -j1 --color=yes configure --with-tests --debug
12./waf -j1 --color=yes build
13
14# Cleanup
15sudo ./waf -j1 --color=yes distclean
16
17# Configure/build in optimized mode without tests
18./waf -j1 --color=yes configure
19./waf -j1 --color=yes build
20
21# Cleanup
22sudo ./waf -j1 --color=yes distclean
23
24# Configure/build in optimized mode
Chengyu Fan71b712b2015-09-09 22:13:56 -060025./waf -j1 --color=yes configure --with-tests $COVERAGE
Chengyu Fan27887552015-03-26 17:12:00 -060026./waf -j1 --color=yes build
27
28# (tests will be run against optimized version)