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 | |
| 9 | # Cleanup |
| 10 | sudo ./waf distclean -j1 --color=yes |
| 11 | |
| 12 | # Configure |
| 13 | COVERAGE=$( python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''" ) |
| 14 | |
| 15 | CXXFLAGS="-std=c++03 -pedantic -Wall -Wno-long-long -O2 -g -Werror" \ |
| 16 | ./waf configure -j1 --color=yes --with-tests --without-pch $COVERAGE |
| 17 | |
| 18 | # Build |
| 19 | ./waf --color=yes -j1 |
| 20 | |
| 21 | # Install |
| 22 | sudo ./waf -j1 --color=yes install |