Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -x |
Vince Lehman | 0a7da61 | 2014-10-29 14:39:29 -0500 | [diff] [blame] | 3 | set -e |
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 4 | |
| 5 | git submodule init |
| 6 | git submodule sync |
| 7 | git submodule update |
| 8 | |
Vince Lehman | 0a7da61 | 2014-10-29 14:39:29 -0500 | [diff] [blame] | 9 | COVERAGE=$( python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''" ) |
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 10 | |
Vince Lehman | 0a7da61 | 2014-10-29 14:39:29 -0500 | [diff] [blame] | 11 | # Cleanup |
| 12 | sudo ./waf -j1 --color=yes distclean |
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 13 | |
Vince Lehman | 0a7da61 | 2014-10-29 14:39:29 -0500 | [diff] [blame] | 14 | # Configure/build in debug mode |
| 15 | ./waf -j1 --color=yes configure --with-tests --debug |
| 16 | ./waf -j1 --color=yes build |
| 17 | |
| 18 | # Cleanup |
| 19 | sudo ./waf -j1 --color=yes distclean |
| 20 | |
| 21 | # Configure/build in optimized mode without tests |
| 22 | ./waf -j1 --color=yes configure |
| 23 | ./waf -j1 --color=yes build |
| 24 | |
| 25 | # Cleanup |
| 26 | sudo ./waf -j1 --color=yes distclean |
| 27 | |
| 28 | # Configure/build in optimized mode with tests |
| 29 | ./waf -j1 --color=yes configure --with-tests $COVERAGE |
| 30 | ./waf -j1 --color=yes build |
| 31 | |
| 32 | # (tests will be run against optimized version) |
| 33 | |
| 34 | ./waf configure --color=yes --with-tests $COVERAGE |
Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame] | 35 | |
| 36 | ./waf -j1 --color=yes |
| 37 | sudo ./waf install --color=yes |