From: Tobias Brunner Date: Wed, 12 Sep 2018 13:51:08 +0000 (+0200) Subject: travis: Use a fix revision for Botan and speed up subsequent builds via ccache X-Git-Tag: 5.7.0rc1~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bbb736edc9fc46c5f50f060608d94c952934735;p=thirdparty%2Fstrongswan.git travis: Use a fix revision for Botan and speed up subsequent builds via ccache --- diff --git a/.travis.yml b/.travis.yml index 99a01d2090..504e118d99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,8 @@ compiler: - gcc - clang +cache: ccache + before_install: - travis_retry ./scripts/test.sh deps - travis_retry ./scripts/test.sh pydeps diff --git a/scripts/test.sh b/scripts/test.sh index 0cff488425..301c3148e7 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -3,6 +3,8 @@ build_botan() { + # same revision used in the build recipe of the testing environment + BOTAN_REV=1872f899716854927ecc68022fac318735be8824 BOTAN_DIR=$TRAVIS_BUILD_DIR/../botan # if the leak detective is enabled we have to disable threading support @@ -15,8 +17,10 @@ build_botan() fi # disable some larger modules we don't need for the tests BOTAN_CONFIG="$BOTAN_CONFIG --disable-modules=pkcs11,tls,x509,xmss" - git clone --depth 1 https://github.com/randombit/botan.git $BOTAN_DIR && + + git clone https://github.com/randombit/botan.git $BOTAN_DIR && cd $BOTAN_DIR && + git checkout $BOTAN_REV && python ./configure.py --amalgamation $BOTAN_CONFIG && make -j4 libs >/dev/null && sudo make install >/dev/null &&