]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
travis: Use a fix revision for Botan and speed up subsequent builds via ccache
authorTobias Brunner <tobias@strongswan.org>
Wed, 12 Sep 2018 13:51:08 +0000 (15:51 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 12 Sep 2018 14:25:00 +0000 (16:25 +0200)
.travis.yml
scripts/test.sh

index 99a01d2090dfd3db9733e04cbdd9f8b21d2c781c..504e118d99e1b4076a26811b61c0ba60782f3a1b 100644 (file)
@@ -7,6 +7,8 @@ compiler:
   - gcc
   - clang
 
+cache: ccache
+
 before_install:
   - travis_retry ./scripts/test.sh deps
   - travis_retry ./scripts/test.sh pydeps
index 0cff488425ae177f010626ce98b264a631f72b35..301c3148e7893fe172c434a22f61586c719fe105 100755 (executable)
@@ -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 &&