From dfe7816ae367197b6dfe733563d8bb6f95bd5e9b Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Thu, 30 May 2019 10:59:48 -0400 Subject: [PATCH] Travis: Add a Travis build for the case 'USE_OPENSSL_FUNCTIONS NO' Maintain the build for the case of USE_OPENSSL_FUNCTIONS set to NO where we build the original TPM 2 code. Signed-off-by: Stefan Berger --- .travis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0a1b5a71..b2b29f7f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,6 +58,24 @@ matrix: uidgid="$(id -nu):$(id -ng)" && sudo chown -R ${uidgid} ./ && cpp-coveralls -b src -e tests -e swtpm --gcov-options '\-lp' + - env: CONFIG="--with-openssl --prefix=/usr --with-tpm2 --enable-test-coverage" + TARGET="install" NPROC="nproc" + dist: xenial + script: + sed -i 's/.* USE_OPENSSL_FUNCTIONS .*/#define USE_OPENSSL_FUNCTIONS NO/' + src/tpm2/Implementation.h && + ./autogen.sh ${CONFIG} && + sudo make -j$(nproc) ${TARGET} && + sudo make -j$(nproc) check && + git clone https://github.com/stefanberger/swtpm.git && + pushd swtpm && + sudo apt -y install devscripts equivs python-twisted libfuse-dev + libglib2.0-dev libgmp-dev expect libtasn1-dev socat findutils + tpm-tools gnutls-dev gnutls-bin && + ./autogen.sh --with-gnutls --prefix=/usr && + export SWTPM_TEST_EXPENSIVE=1 && + sudo make -j$(nproc) check && + popd - env: CONFIG="--with-openssl --prefix=/usr --with-tpm2" "TARGET=check" NPROC="sysctl -n hw.ncpu" CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib"