diff options
Diffstat (limited to 'src/scripts/ci/build.sh')
-rwxr-xr-x | src/scripts/ci/build.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/scripts/ci/build.sh b/src/scripts/ci/build.sh index 684cca437..9bb7ce7e6 100755 --- a/src/scripts/ci/build.sh +++ b/src/scripts/ci/build.sh @@ -17,10 +17,28 @@ if [ "$MODULES" = "min" ]; then CFG_FLAGS="$CFG_FLAGS --no-autoload --enable-modules=base" fi +# Workaround for missing update-alternatives +# https://github.com/travis-ci/travis-ci/issues/3668 +if [ "$CXX" = "g++" ]; then + export CXX="/usr/bin/g++-4.8" +fi + +#enable ccache +if [ "$TRAVIS_OS_NAME" = "linux" ]; then + ccache --max-size=30M + ccache --show-stats + + export CXX="ccache $CXX" +fi + $CXX --version -python configure.py $CFG_FLAGS --cc=$CC --cc-bin=$CXX --with-openssl --with-sqlite --with-zlib +./configure.py $CFG_FLAGS --cc="$CC" --cc-bin="$CXX" \ + --with-openssl --with-sqlite --with-zlib \ + --prefix=/tmp/botan-installation make -j 2 if [ "$MODULES" != "min" ]; then ./botan-test fi + +make install |