blob: 9297c7ecefd1e4d88b127de61c89829271632481 [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 ''" )
10
11# Cleanup
12sudo ./waf -j1 distclean
13
14# Configure/build in debug mode
15./waf -j1 configure --enable-examples --enable-tests
16./waf -j1 build
17
18# # Cleanup
19# sudo ./waf -j1 --color=yes distclean
20
21# # Configure/build in optimized mode without tests with precompiled headers
22# ./waf -j1 --color=yes configure
23# ./waf -j1 --color=yes build
24
25# # Cleanup
26# sudo ./waf -j1 --color=yes distclean
27
28# # Configure/build in optimized mode
29# ./waf -j1 --color=yes configure --with-tests --without-pch $COVERAGE
30# ./waf -j1 --color=yes build
31
32# # (tests will be run against optimized version)
33
34# # Install
35# sudo ./waf -j1 --color=yes install