blob: d2552e760d5ef4dbab66e75ec76dfea0d0df6c27 [file] [log] [blame]
Alexander Afanasyev21034bf2014-09-02 18:31:53 -07001#!/usr/bin/env bash
2set -x
Shock Jiang2d8483c2014-10-30 10:15:37 -07003set -e
Alexander Afanasyev21034bf2014-09-02 18:31:53 -07004
Alexander Afanasyev7495a7e2014-11-20 19:21:27 -08005COVERAGE=$( python -c "print '--with-coverage --debug' if 'code-coverage' in '$JOB_NAME' else ''" )
6
7# Cleanup
8sudo ./waf -j1 --color=yes distclean
9
10# Configure/build in debug mode
11./waf -j1 --color=yes configure --with-tests --debug
12./waf -j1 --color=yes build
13
14# Cleanup
15sudo ./waf -j1 --color=yes distclean
16
17# Configure/build in optimized mode without tests
18./waf -j1 --color=yes configure
19./waf -j1 --color=yes build
20
21# Cleanup
22sudo ./waf -j1 --color=yes distclean
23
24# Configure/build in optimized mode
25./waf -j1 --color=yes configure --with-tests $COVERAGE
26./waf -j1 --color=yes build
27
28# (tests will be run against optimized version)
29
30# Install
31sudo ./waf -j1 --color=yes install