Alexander Afanasyev | 8e60bcd | 2015-01-15 20:55:40 +0000 | [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 | # COVERAGE=$( python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''" ) |
Alexander Afanasyev | df26b5a | 2015-01-15 23:30:56 -0800 | [diff] [blame] | 10 | IS_UBUNTU_12_04=$( python -c "print 'yes' if 'Ubuntu-12.04' in '$NODE_LABELS'.strip().split(' ') else 'no'" ) |
| 11 | if [[ $IS_UBUNTU_12_04 == "yes" ]]; then |
| 12 | EXTRA_FLAGS=" --boost-libs=/usr/lib/x86_64-linux-gnu" |
| 13 | fi |
Alexander Afanasyev | 8e60bcd | 2015-01-15 20:55:40 +0000 | [diff] [blame] | 14 | |
| 15 | # Cleanup |
| 16 | sudo ./waf -j1 distclean |
| 17 | |
| 18 | # Configure/build in debug mode |
Alexander Afanasyev | 15db772 | 2015-01-19 17:27:26 -0800 | [diff] [blame] | 19 | ./waf -j1 configure --enable-modules=ndnSIM --enable-examples --enable-tests $EXTRA_FLAGS |
Alexander Afanasyev | 8e60bcd | 2015-01-15 20:55:40 +0000 | [diff] [blame] | 20 | ./waf -j1 build |
| 21 | |
| 22 | # # Cleanup |
| 23 | # sudo ./waf -j1 --color=yes distclean |
| 24 | |
| 25 | # # Configure/build in optimized mode without tests with precompiled headers |
| 26 | # ./waf -j1 --color=yes configure |
| 27 | # ./waf -j1 --color=yes build |
| 28 | |
| 29 | # # Cleanup |
| 30 | # sudo ./waf -j1 --color=yes distclean |
| 31 | |
| 32 | # # Configure/build in optimized mode |
| 33 | # ./waf -j1 --color=yes configure --with-tests --without-pch $COVERAGE |
| 34 | # ./waf -j1 --color=yes build |
| 35 | |
| 36 | # # (tests will be run against optimized version) |
| 37 | |
| 38 | # # Install |
| 39 | # sudo ./waf -j1 --color=yes install |