before_install:
- travis_retry ./scripts/test.sh deps
- travis_retry ./scripts/test.sh pydeps
+ - travis_retry ./scripts/test.sh build-deps
before_script:
- sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 || true
build_tss2()
{
- TSS2_REV=2.3.3
+ TSS2_REV=2.4.1
TSS2_PKG=tpm2-tss-$TSS2_REV
TSS2_DIR=$DEPS_BUILD_DIR/$TSS2_PKG
TSS2_SRC=https://github.com/tpm2-software/tpm2-tss/releases/download/$TSS2_REV/$TSS2_PKG.tar.gz
CONFIG="--disable-defaults --enable-pki --enable-botan --enable-pem"
export TESTS_PLUGINS="test-vectors pem botan!"
DEPS=""
- if test "$1" = "deps"; then
+ if test "$1" = "build-deps"; then
build_botan
fi
;;
export TESTS_PLUGINS="test-vectors pem wolfssl!"
# build with custom options to enable all the features the plugin supports
DEPS=""
- if test "$1" = "deps"; then
+ if test "$1" = "build-deps"; then
build_wolfssl
fi
;;
libpcsclite-dev libpam0g-dev binutils-dev libnm-dev libgcrypt20-dev
libjson-c-dev iptables-dev python-pip libtspi-dev libsystemd-dev"
PYDEPS="tox"
- if test "$1" = "deps"; then
+ if test "$1" = "build-deps"; then
if test -z "$UBUNTU_XENIAL"; then
build_botan
fi
;;
esac
-if test "$1" = "deps"; then
+case "$1" in
+deps)
case "$TRAVIS_OS_NAME" in
linux)
sudo apt-get update -qq && \
;;
esac
exit $?
-fi
-
-if test "$1" = "pydeps"; then
+ ;;
+pydeps)
test -z "$PYDEPS" || pip -q install --user $PYDEPS
exit $?
-fi
+ ;;
+build-deps)
+ exit
+ ;;
+*)
+ ;;
+esac
CONFIG="$CONFIG
--disable-dependency-tracking