blob: b288135139e9d76282cd43d15763d6e6b41f993f [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
9# Cleanup
10sudo ./waf distclean -j1 --color=yes
11
12# Configure
13COVERAGE=$( python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''" )
14
15CXXFLAGS="-std=c++03 -pedantic -Wall -Wno-long-long -O2 -g -Werror" \
16 ./waf configure -j1 --color=yes --with-tests --without-pch $COVERAGE
17
18# Build
19./waf --color=yes -j1
20
21# Install
22sudo ./waf -j1 --color=yes install