diff options
author | Chris Wilson <chris+github@qwirx.com> | 2016-08-30 22:20:48 +0100 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2016-08-28 21:46:26 +0100 |
commit | 1abb97d5bb8d172c6a11ab0f6cdfbc183f8529a8 (patch) | |
tree | f1349d6d344ba584913410f8a5bbd0e179bb4deb | |
parent | cf52058f32e54fe720abe51d8d5266b440180163 (diff) |
Replace Travis build instructions with a script.
Easier to run locally to help reproduce issues with Travis builds.
-rw-r--r-- | .travis.yml | 10 | ||||
-rwxr-xr-x | infrastructure/travis-build.sh | 15 |
2 files changed, 16 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 3f4e75ef..dbc1466c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,17 +20,9 @@ addons: - xsltproc - zlib1g-dev -before_script: - - ccache -s - - ./bootstrap - - ./configure CC="ccache $CC" CXX="ccache $CXX" - - grep CXX config.status - - make - env: - TEST_TARGET=debug - TEST_TARGET=release script: - - ./runtest.pl ALL $TEST_TARGET - - ccache -s + - ./infrastructure/travis-build.sh diff --git a/infrastructure/travis-build.sh b/infrastructure/travis-build.sh new file mode 100755 index 00000000..f4cd4ef4 --- /dev/null +++ b/infrastructure/travis-build.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +ccache -s + +cd `dirname $0`/.. +./bootstrap +./configure CC="ccache $CC" CXX="ccache $CXX" "$@" +grep CXX config.status +make V=1 +./runtest.pl ALL $TEST_TARGET + +ccache -s |