Change-Id: I74c5a091c8b1c05dd186a0c10849aa5bb4f39e50 Signed-off-by: Varun Patil <varunpatil@ucla.edu>
37 lines
843 B
Bash
Executable File
37 lines
843 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
|
|
if [[ -z $DISABLE_ASAN ]]; then
|
|
ASAN="--with-sanitizer=address"
|
|
fi
|
|
if [[ $JOB_NAME == *"code-coverage" ]]; then
|
|
COVERAGE="--with-coverage"
|
|
fi
|
|
|
|
set -x
|
|
|
|
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 build
|
|
|
|
# Cleanup
|
|
./waf --color=yes distclean
|
|
|
|
# Build in release mode without tests
|
|
./waf --color=yes configure
|
|
./waf --color=yes build
|
|
|
|
# Cleanup
|
|
./waf --color=yes distclean
|
|
fi
|
|
|
|
# Build in debug mode with tests
|
|
./waf --color=yes configure --debug --with-psync --with-chronosync --with-svs --with-tests $ASAN $COVERAGE
|
|
./waf --color=yes build
|
|
|
|
# (tests will be run against the debug version)
|
|
|
|
# Install
|
|
sudo ./waf --color=yes install
|