blob: 93e7d7991492be79606e2701637e157756ebd54e [file] [log] [blame]
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +00001#!/usr/bin/env bash
2set -x
3set -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 Afanasyevdf26b5a2015-01-15 23:30:56 -080010IS_UBUNTU_12_04=$( python -c "print 'yes' if 'Ubuntu-12.04' in '$NODE_LABELS'.strip().split(' ') else 'no'" )
11if [[ $IS_UBUNTU_12_04 == "yes" ]]; then
12 EXTRA_FLAGS=" --boost-libs=/usr/lib/x86_64-linux-gnu"
13fi
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +000014
15# Cleanup
16sudo ./waf -j1 distclean
17
18# Configure/build in debug mode
Alexander Afanasyev15db7722015-01-19 17:27:26 -080019./waf -j1 configure --enable-modules=ndnSIM --enable-examples --enable-tests $EXTRA_FLAGS
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +000020./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