]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
travis: Bump tpm2-tss to 2.4.1
authorTobias Brunner <tobias@strongswan.org>
Mon, 25 May 2020 12:29:44 +0000 (14:29 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 26 May 2020 09:06:07 +0000 (11:06 +0200)
Manually built dependencies are now built in a separate step after
packages have been installed as they might depend themselves on some
packages (e.g. tpm2-tss, which now requires libjson-c).

.travis.yml
scripts/test.sh

index dd922a9eb10764576100b6cf75c26f822c1cb356..29d6adfa28ac9c8dba21899418129296082b0128 100644 (file)
@@ -13,6 +13,7 @@ cache: ccache
 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
index be912133a45b3980f0f5d0f89804d55835442f96..bba3a45a9739e2d2dff597ca1f02e39be11ea260 100755 (executable)
@@ -68,7 +68,7 @@ build_wolfssl()
 
 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
@@ -117,7 +117,7 @@ botan)
        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
        ;;
@@ -126,7 +126,7 @@ wolfssl)
        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
        ;;
@@ -161,7 +161,7 @@ all|coverage|sonarcloud)
                  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
@@ -363,7 +363,8 @@ lgtm)
        ;;
 esac
 
-if test "$1" = "deps"; then
+case "$1" in
+deps)
        case "$TRAVIS_OS_NAME" in
        linux)
                sudo apt-get update -qq && \
@@ -379,12 +380,17 @@ if test "$1" = "deps"; then
                ;;
        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