blob: 464a7eabe9ccb8ad0c3d1640319b37af11918f44 [file] [log] [blame]
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07001#!/usr/bin/env bash
2set -x
Vince Lehman0a7da612014-10-29 14:39:29 -05003set -e
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -07004
5git submodule init
6git submodule sync
7git submodule update
8
Vince Lehman0a7da612014-10-29 14:39:29 -05009COVERAGE=$( python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''" )
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -070010
Vince Lehman0a7da612014-10-29 14:39:29 -050011# Cleanup
12sudo ./waf -j1 --color=yes distclean
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -070013
Vince Lehman0a7da612014-10-29 14:39:29 -050014# Configure/build in debug mode
15./waf -j1 --color=yes configure --with-tests --debug
16./waf -j1 --color=yes build
17
18# Cleanup
19sudo ./waf -j1 --color=yes distclean
20
21# Configure/build in optimized mode without tests
22./waf -j1 --color=yes configure
23./waf -j1 --color=yes build
24
25# Cleanup
26sudo ./waf -j1 --color=yes distclean
27
28# Configure/build in optimized mode with tests
29./waf -j1 --color=yes configure --with-tests $COVERAGE
30./waf -j1 --color=yes build
31
32# (tests will be run against optimized version)
33
34./waf configure --color=yes --with-tests $COVERAGE
Alexander Afanasyevbc98fcf2014-08-16 23:18:50 -070035
36./waf -j1 --color=yes
37sudo ./waf install --color=yes