blob: 09fa916d2bfdba10032a305f9e89f041149b6490 [file] [log] [blame]
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07001#!/usr/bin/env bash
2set -x
3set -e
4
5git submodule init
6git submodule sync
7git submodule update
8
Davide Pesaventoab1e8f22014-10-21 22:45:33 +02009# Cleanup
10sudo ./waf -j1 --color=yes distclean
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -070011
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -080012# Configure/build in optimized mode with tests and precompiled headers
13./waf -j1 --color=yes configure --with-tests
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020014./waf -j1 --color=yes build
15
16# Cleanup
17sudo ./waf -j1 --color=yes distclean
18
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -080019# Configure/build in optimized mode without tests and with precompiled headers
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020020./waf -j1 --color=yes configure
21./waf -j1 --color=yes build
22
23# Cleanup
24sudo ./waf -j1 --color=yes distclean
25
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -080026# Configure/build in debug mode
27if [[ "$JOB_NAME" == *"code-coverage" ]]; then
28 COVERAGE="--with-coverage"
29fi
30./waf -j1 --color=yes configure --debug --with-tests --without-pch $COVERAGE
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020031./waf -j1 --color=yes build
32
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -080033# (tests will be run against debug version)
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -070034
35# Install
36sudo ./waf -j1 --color=yes install