blob: 4dd6f6fff775b74d69d22a10c75b49cacbf6d1de [file] [log] [blame]
Varun Patila24bd3e2020-11-24 10:08:33 +05301#!/usr/bin/env bash
2set -ex
3
4git submodule sync
5git submodule update --init
6
7if [[ $JOB_NAME != *"limited-build" ]]; then
8 # Build in release mode with tests
9 ./waf --color=yes configure --with-tests
10 ./waf --color=yes build -j$WAF_JOBS
11
12 # Cleanup
13 ./waf --color=yes distclean
14
15 # Build in release mode without tests
16 ./waf --color=yes configure
17 ./waf --color=yes build -j$WAF_JOBS
18
19 # Cleanup
20 ./waf --color=yes distclean
21fi
22
23# Build in debug mode with tests
24./waf --color=yes configure --debug --with-tests
25./waf --color=yes build -j$WAF_JOBS
26
27# (tests will be run against the debug version)
28
29# Install
30sudo_preserve_env PATH -- ./waf --color=yes install