blob: 1c4fdf2862f62857227bf1a5942b6463dc381868 [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
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -07009COVERAGE=$( python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''" )
10
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020011# Cleanup
12sudo ./waf -j1 --color=yes distclean
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -070013
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020014# Configure/build in debug mode
Alexander Afanasyev4e88e072014-10-31 11:02:10 -070015./waf -j1 --color=yes configure --with-tests --debug
Davide Pesaventoab1e8f22014-10-21 22:45:33 +020016./waf -j1 --color=yes build
17
18# Cleanup
19sudo ./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
26sudo ./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)
Alexander Afanasyev4d4e7252014-10-25 12:21:53 -070033
34# Install
35sudo ./waf -j1 --color=yes install