blob: 3944ac137f4beee0adceb3edbc93a32c39d16d9d [file] [log] [blame]
Teddy Reedc4335c72016-01-13 17:53:59 -08001language: cpp
2compiler:
3 - gcc
4
5# This is a lie: we don't need sudo but this is required to get an
6# Ubuntu image with a libc that isn't ancient, and with cmocka libs.
7sudo: required
8dist: trusty
9
10addons:
11 apt:
12 packages:
13 - autoconf-archive
14 - libcmocka0
15 - libcmocka-dev
16
17install: true
18
19before_script:
20 - ./bootstrap
21
22script:
23 - mkdir ./build
24 - pushd ./build
Philip Tricca802c4772017-05-10 16:58:42 -070025 - ../configure --enable-unit
Teddy Reedc4335c72016-01-13 17:53:59 -080026 - make -j$(nproc)
Philip Tricca07a0c462016-12-04 21:19:38 -080027 - make simulator-build
28 - make simulator-start
Philip Tricca1ad5be12017-05-10 19:47:34 -070029 - make check
Philip Tricca21867912017-05-10 14:02:45 -070030 - test/tpmclient/tpmclient
Philip Tricca07a0c462016-12-04 21:19:38 -080031 - make simulator-stop
Philip Triccaf52391c2017-02-15 19:03:18 -080032 - |
33 for LOG in $(ls -1 test/unit/*.log); do
34 echo "${LOG}"
35 cat ${LOG}
36 done
37 - |
38 for LOG in $(ls -1 test/integration/*.log); do
39 echo "${LOG}"
40 cat ${LOG}
41 done