blob: 18bbb4e350ca36171cf89084ca5b302f66dfb911 [file] [log] [blame]
language: cpp
compiler:
- gcc
- clang
# 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
- ../configure --enable-unit
- make -j$(nproc)
- make simulator-build
- make simulator-start
- make check
- 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