travis: Build botan plugin also in the tests that build everything
This commit is contained in:
+24
-18
@@ -1,6 +1,26 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Build script for Travis CI
|
# Build script for Travis CI
|
||||||
|
|
||||||
|
build_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
|
||||||
|
# references it (e.g. crypter or hasher), so we disable that too
|
||||||
|
if test "$LEAK_DETECTIVE" = "yes"; then
|
||||||
|
BOTAN_CONFIG="--without-os-features=threads
|
||||||
|
--disable-modules=locking_allocator"
|
||||||
|
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 &&
|
||||||
|
make -j4 libs >/dev/null &&
|
||||||
|
sudo make install >/dev/null &&
|
||||||
|
sudo ldconfig || exit $?
|
||||||
|
}
|
||||||
|
|
||||||
if test -z $TRAVIS_BUILD_DIR; then
|
if test -z $TRAVIS_BUILD_DIR; then
|
||||||
TRAVIS_BUILD_DIR=$PWD
|
TRAVIS_BUILD_DIR=$PWD
|
||||||
fi
|
fi
|
||||||
@@ -34,22 +54,7 @@ botan)
|
|||||||
# currently required)
|
# currently required)
|
||||||
DEPS=""
|
DEPS=""
|
||||||
if test "$1" = "deps"; then
|
if test "$1" = "deps"; then
|
||||||
# if the leak detective is enabled we have to disable threading support
|
build_botan
|
||||||
# (used for std::async) as that causes invalid frees somehow, the
|
|
||||||
# locking allocator causes a static leak via the first function that
|
|
||||||
# references it (e.g. crypter or hasher), so we disable that too
|
|
||||||
if test "$LEAK_DETECTIVE" = "yes"; then
|
|
||||||
BOTAN_CONFIG="--without-os-features=threads
|
|
||||||
--disable-modules=locking_allocator"
|
|
||||||
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 &&
|
|
||||||
make -j4 libs >/dev/null &&
|
|
||||||
sudo make install >/dev/null &&
|
|
||||||
sudo ldconfig || exit $?
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
printf-builtin)
|
printf-builtin)
|
||||||
@@ -69,8 +74,6 @@ all|coverage|sonarcloud)
|
|||||||
CONFIG="$CONFIG --disable-nm"
|
CONFIG="$CONFIG --disable-nm"
|
||||||
# not enabled on the build server
|
# not enabled on the build server
|
||||||
CONFIG="$CONFIG --disable-af-alg"
|
CONFIG="$CONFIG --disable-af-alg"
|
||||||
# separate test case with external dependency
|
|
||||||
CONFIG="$CONFIG --disable-botan"
|
|
||||||
if test "$TEST" != "coverage"; then
|
if test "$TEST" != "coverage"; then
|
||||||
CONFIG="$CONFIG --disable-coverage"
|
CONFIG="$CONFIG --disable-coverage"
|
||||||
else
|
else
|
||||||
@@ -82,6 +85,9 @@ all|coverage|sonarcloud)
|
|||||||
libpcsclite-dev libpam0g-dev binutils-dev libunwind8-dev
|
libpcsclite-dev libpam0g-dev binutils-dev libunwind8-dev
|
||||||
libjson0-dev iptables-dev python-pip libtspi-dev"
|
libjson0-dev iptables-dev python-pip libtspi-dev"
|
||||||
PYDEPS="pytest"
|
PYDEPS="pytest"
|
||||||
|
if test "$1" = "deps"; then
|
||||||
|
build_botan
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
win*)
|
win*)
|
||||||
CONFIG="--disable-defaults --enable-svc --enable-ikev2
|
CONFIG="--disable-defaults --enable-svc --enable-ikev2
|
||||||
|
|||||||
Reference in New Issue
Block a user