a0546dbc86
Also in this commit: * Sync CI scripts with other projects * Modernize docs/conf.py * Cleanup README.md * Use the official markdown version of the GPLv3 Refs: #5095 Change-Id: Ie607fcde1f6e41fa5efbbb41b21cb08583017442
42 lines
943 B
Bash
Executable File
42 lines
943 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
git submodule sync
|
|
git submodule update --init
|
|
|
|
if [[ -z $DISABLE_ASAN ]]; then
|
|
ASAN="--with-sanitizer=address"
|
|
fi
|
|
if [[ $JOB_NAME == *"code-coverage" ]]; then
|
|
COVERAGE="--with-coverage"
|
|
fi
|
|
|
|
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 -j$WAF_JOBS
|
|
|
|
# Cleanup
|
|
./waf --color=yes distclean
|
|
|
|
# Build in release mode without tests
|
|
./waf --color=yes configure
|
|
./waf --color=yes build -j$WAF_JOBS
|
|
|
|
# Cleanup
|
|
./waf --color=yes distclean
|
|
fi
|
|
|
|
# Build in debug mode with tests
|
|
./waf --color=yes configure --debug --with-tests $ASAN $COVERAGE
|
|
./waf --color=yes build -j$WAF_JOBS
|
|
|
|
# (tests will be run against the debug version)
|
|
|
|
# Install
|
|
sudo_preserve_env PATH -- ./waf --color=yes install
|
|
|
|
if has Linux $NODE_LABELS; then
|
|
sudo ldconfig
|
|
fi
|