From: Tobias Brunner Date: Wed, 12 Sep 2018 11:12:44 +0000 (+0200) Subject: travis: Use amalgamation build for Botan and build outside our source tree X-Git-Tag: 5.7.0rc1~4^2~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=24af02b00d49376db47b37896987e81e153b05ac;p=thirdparty%2Fstrongswan.git travis: Use amalgamation build for Botan and build outside our source tree This merges all source files into botan_all.cpp, which reduces the build time by almost 50%. Building outside the strongSwan tree avoids analyzing Botan with sonarqube. --- diff --git a/scripts/test.sh b/scripts/test.sh index 70994ed1bc..0cff488425 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -3,6 +3,8 @@ build_botan() { + BOTAN_DIR=$TRAVIS_BUILD_DIR/../botan + # if the leak detective is enabled we have to disable threading support # (used for std::async) as that causes invalid frees somehow, the # locking allocator causes a static leak via the first function that @@ -13,12 +15,13 @@ 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 && - cd botan && - python ./configure.py $BOTAN_CONFIG && + git clone --depth 1 https://github.com/randombit/botan.git $BOTAN_DIR && + cd $BOTAN_DIR && + python ./configure.py --amalgamation $BOTAN_CONFIG && make -j4 libs >/dev/null && sudo make install >/dev/null && sudo ldconfig || exit $? + cd - } if test -z $TRAVIS_BUILD_DIR; then