Chengyu Fan | 2788755 | 2015-03-26 17:12:00 -0600 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -x |
| 3 | set -e |
| 4 | |
Chengyu Fan | 71b712b | 2015-09-09 22:13:56 -0600 | [diff] [blame] | 5 | COVERAGE=$( python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''" ) |
| 6 | |
Chengyu Fan | 2788755 | 2015-03-26 17:12:00 -0600 | [diff] [blame] | 7 | # Cleanup |
| 8 | sudo ./waf -j1 --color=yes distclean |
| 9 | |
| 10 | # Configure/build in debug mode |
| 11 | ./waf -j1 --color=yes configure --with-tests --debug |
| 12 | ./waf -j1 --color=yes build |
| 13 | |
| 14 | # Cleanup |
| 15 | sudo ./waf -j1 --color=yes distclean |
| 16 | |
| 17 | # Configure/build in optimized mode without tests |
| 18 | ./waf -j1 --color=yes configure |
| 19 | ./waf -j1 --color=yes build |
| 20 | |
| 21 | # Cleanup |
| 22 | sudo ./waf -j1 --color=yes distclean |
| 23 | |
| 24 | # Configure/build in optimized mode |
Chengyu Fan | 71b712b | 2015-09-09 22:13:56 -0600 | [diff] [blame] | 25 | ./waf -j1 --color=yes configure --with-tests $COVERAGE |
Chengyu Fan | 2788755 | 2015-03-26 17:12:00 -0600 | [diff] [blame] | 26 | ./waf -j1 --color=yes build |
| 27 | |
| 28 | # (tests will be run against optimized version) |