Varun Patil | a24bd3e | 2020-11-24 10:08:33 +0530 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | set -ex |
| 3 | |
| 4 | git submodule sync |
| 5 | git submodule update --init |
| 6 | |
| 7 | if [[ $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 |
| 21 | fi |
| 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 |
| 30 | sudo_preserve_env PATH -- ./waf --color=yes install |