Alexander Afanasyev | bc98fcf | 2014-08-16 23:18:50 -0700 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
2 | set -x | ||||
3 | |||||
4 | git submodule init | ||||
5 | git submodule sync | ||||
6 | git submodule update | ||||
7 | |||||
8 | # actual build | ||||
9 | ./waf distclean --color=yes | ||||
10 | |||||
11 | COVERAGE=`python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''"` | ||||
12 | |||||
13 | CXXFLAGS="-Wall -Wno-long-long -O2 -g -Werror" ./waf configure --color=yes --with-tests $COVERAGE | ||||
14 | |||||
15 | ./waf -j1 --color=yes | ||||
16 | sudo ./waf install --color=yes |