blob: 701ce52b8dadd8c8c413f11a3bbb8a18382aba71 [file] [log] [blame]
language: cpp
compiler:
- gcc
# This is a lie: we don't need sudo but this is required to get an
# Ubuntu image with a libc that isn't ancient, and with cmocka libs.
sudo: required
dist: trusty
addons:
apt:
packages:
- autoconf-archive
- libcmocka0
- libcmocka-dev
install: true
before_script:
- ./bootstrap
script:
- mkdir ./build
- pushd ./build
- CONFIG_SITE=../lib/default_config.site ../configure --enable-unit
- make -j$(nproc)
- make check
- make simulator-build
- make simulator-start
- test/tpmclient/tpmclient
- make simulator-stop
- |
for LOG in $(ls -1 test/unit/*.log); do
echo "${LOG}"
cat ${LOG}
done
- |
for LOG in $(ls -1 test/integration/*.log); do
echo "${LOG}"
cat ${LOG}
done