mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-07 02:26:50 +00:00
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 <stefanb@linux.ibm.com>
This commit is contained in:
parent
e91633b271
commit
dfe7816ae3
18
.travis.yml
18
.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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user