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