blob: 43031f4eeccc313c01e068701a96019aeed2c338 [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
Philip Triccac924ed62017-06-18 16:05:32 -070018install:
19 - wget https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm532.tar
20 - sha256sum ibmtpm532.tar | grep -q ^abc0b420257917ccb42a9750588565d5e84a2b4e99a6f9f46c3dad1f9912864f
21 - mkdir ibmtpm532
22 - tar axf ibmtpm532.tar -C ibmtpm532
23 - make -C ibmtpm532/src -j$(nproc)
Teddy Reedc4335c72016-01-13 17:53:59 -080024
25before_script:
26 - ./bootstrap
27
28script:
29 - mkdir ./build
30 - pushd ./build
Philip Triccac924ed62017-06-18 16:05:32 -070031 - ../configure --enable-unit --with-simulatorbin=$(pwd)/../ibmtpm532/src/tpm_server
Teddy Reedc4335c72016-01-13 17:53:59 -080032 - make -j$(nproc)
Philip Triccac924ed62017-06-18 16:05:32 -070033 - make -j$(nproc) check
Philip Triccaf52391c2017-02-15 19:03:18 -080034 - |
35 for LOG in $(ls -1 test/unit/*.log); do
36 echo "${LOG}"
37 cat ${LOG}
38 done
39 - |
40 for LOG in $(ls -1 test/integration/*.log); do
41 echo "${LOG}"
42 cat ${LOG}
43 done
Philip Tricca93cea252017-07-13 14:28:08 -070044 - cat test/tpmclient/tpmclient.log