spirosmastorakis | 15ebb1e | 2016-01-25 21:20:25 -0800 | [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 | |
| 9 | # Cleanup |
| 10 | sudo ./waf -j1 --color=yes distclean |
| 11 | |
| 12 | # Configure/build in optimized mode with tests and precompiled headers |
| 13 | ./waf -j1 --color=yes configure --with-tests |
| 14 | ./waf -j1 --color=yes build |
| 15 | |
| 16 | # Cleanup |
| 17 | sudo ./waf -j1 --color=yes distclean |
| 18 | |
| 19 | # Configure/build in optimized mode without tests and with precompiled headers |
| 20 | ./waf -j1 --color=yes configure |
| 21 | ./waf -j1 --color=yes build |
| 22 | |
| 23 | # Cleanup |
| 24 | sudo ./waf -j1 --color=yes distclean |
| 25 | |
| 26 | ./waf -j1 --color=yes configure --with-tests |
| 27 | ./waf -j1 --color=yes build |
| 28 | |
| 29 | # (tests will be run against debug version) |
| 30 | |
| 31 | # Install |
| 32 | sudo ./waf -j1 --color=yes install |