blob: 701ce52b8dadd8c8c413f11a3bbb8a18382aba71 [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
25 - CONFIG_SITE=../lib/default_config.site ../configure --enable-unit
26 - make -j$(nproc)
Philip Tricca21867912017-05-10 14:02:45 -070027 - make check
Philip Triccaa288cc32016-12-04 21:19:38 -080028 - make simulator-build
29 - make simulator-start
Philip Tricca21867912017-05-10 14:02:45 -070030 - test/tpmclient/tpmclient
Philip Triccaa288cc32016-12-04 21:19:38 -080031 - make simulator-stop
Philip Triccac2bfb942017-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