| if [[ -z $DISABLE_ASAN ]]; then |
| ASAN="--with-sanitizer=address" |
| if [[ $JOB_NAME == *"code-coverage" ]]; then |
| COVERAGE="--with-coverage" |
| if [[ $JOB_NAME != *"code-coverage" && $JOB_NAME != *"limited-build" ]]; then |
| # Build in release mode with tests |
| ./waf --color=yes configure --with-tests |
| ./waf --color=yes distclean |
| # Build in release mode without tests |
| ./waf --color=yes configure |
| ./waf --color=yes distclean |
| # Build in debug mode with tests |
| ./waf --color=yes configure --debug --with-chronosync --with-psync --with-svs --with-tests $ASAN $COVERAGE |
| # (tests will be run against the debug version) |
| sudo ./waf --color=yes install |