| JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| sudo ./waf -j1 --color=yes distclean |
| if [[ "$JOB_NAME" != *"limited-build" ]]; then |
| # Configure/build in optimized mode with tests |
| ./waf -j1 --color=yes configure --with-tests |
| ./waf -j1 --color=yes build |
| sudo ./waf -j1 --color=yes distclean |
| # Configure/build in optimized mode without tests |
| ./waf -j1 --color=yes configure |
| ./waf -j1 --color=yes build |
| sudo ./waf -j1 --color=yes distclean |
| # Configure/build in debug mode with tests and without precompiled headers |
| if [[ "$JOB_NAME" == *"code-coverage" ]]; then |
| COVERAGE="--with-coverage" |
| elif ! has OSX-10.9 $NODE_LABELS && ! has OSX-10.11 $NODE_LABELS; then |
| ASAN="--with-sanitizer=address" |
| ./waf -j1 --color=yes configure --debug --with-tests --without-pch $COVERAGE $ASAN |
| ./waf -j1 --color=yes build |
| # (tests will be run against debug version) |
| sudo ./waf -j1 --color=yes install |
| if has Linux $NODE_LABELS; then |
| elif has FreeBSD $NODE_LABELS; then |