Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | set -x |
| 3 | set -e |
| 4 | |
| 5 | git submodule init |
| 6 | git submodule sync |
| 7 | git submodule update |
| 8 | |
Davide Pesavento | ab1e8f2 | 2014-10-21 22:45:33 +0200 | [diff] [blame] | 9 | # Cleanup |
| 10 | sudo ./waf -j1 --color=yes distclean |
Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame] | 11 | |
Alexander Afanasyev | f22ebaf | 2015-12-17 21:23:05 -0800 | [diff] [blame] | 12 | # Configure/build in optimized mode with tests and precompiled headers |
| 13 | ./waf -j1 --color=yes configure --with-tests |
Davide Pesavento | ab1e8f2 | 2014-10-21 22:45:33 +0200 | [diff] [blame] | 14 | ./waf -j1 --color=yes build |
| 15 | |
| 16 | # Cleanup |
| 17 | sudo ./waf -j1 --color=yes distclean |
| 18 | |
Alexander Afanasyev | f22ebaf | 2015-12-17 21:23:05 -0800 | [diff] [blame] | 19 | # Configure/build in optimized mode without tests and with precompiled headers |
Davide Pesavento | ab1e8f2 | 2014-10-21 22:45:33 +0200 | [diff] [blame] | 20 | ./waf -j1 --color=yes configure |
| 21 | ./waf -j1 --color=yes build |
| 22 | |
| 23 | # Cleanup |
| 24 | sudo ./waf -j1 --color=yes distclean |
| 25 | |
Alexander Afanasyev | f22ebaf | 2015-12-17 21:23:05 -0800 | [diff] [blame] | 26 | # Configure/build in debug mode |
| 27 | if [[ "$JOB_NAME" == *"code-coverage" ]]; then |
| 28 | COVERAGE="--with-coverage" |
| 29 | fi |
| 30 | ./waf -j1 --color=yes configure --debug --with-tests --without-pch $COVERAGE |
Davide Pesavento | ab1e8f2 | 2014-10-21 22:45:33 +0200 | [diff] [blame] | 31 | ./waf -j1 --color=yes build |
| 32 | |
Alexander Afanasyev | f22ebaf | 2015-12-17 21:23:05 -0800 | [diff] [blame] | 33 | # (tests will be run against debug version) |
Alexander Afanasyev | 4d4e725 | 2014-10-25 12:21:53 -0700 | [diff] [blame] | 34 | |
| 35 | # Install |
| 36 | sudo ./waf -j1 --color=yes install |