blob: fa7591a51dc53b4c0ad0b2a1f5ff3b70cf4f1edb [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 Afanasyev6602b3b2016-03-15 14:14:11 -070012if [[ "$JOB_NAME" != *"limited-build" ]]; then
13 # Configure/build in optimized mode with tests and precompiled headers
14 ./waf -j1 --color=yes configure --with-tests
15 ./waf -j1 --color=yes build
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020016
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070017 # Cleanup
18 sudo ./waf -j1 --color=yes distclean
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020019
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070020 # Configure/build in optimized mode without tests and with precompiled headers
21 ./waf -j1 --color=yes configure
22 ./waf -j1 --color=yes build
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020023
Alexander Afanasyev6602b3b2016-03-15 14:14:11 -070024 # Cleanup
25 sudo ./waf -j1 --color=yes distclean
26fi
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020027
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -080028# Configure/build in debug mode
29if [[ "$JOB_NAME" == *"code-coverage" ]]; then
30 COVERAGE="--with-coverage"
31fi
32./waf -j1 --color=yes configure --debug --with-tests --without-pch $COVERAGE
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020033./waf -j1 --color=yes build
34
Alexander Afanasyevf22ebaf2015-12-17 21:23:05 -080035# (tests will be run against debug version)
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -070036
37# Install
38sudo ./waf -j1 --color=yes install