blob: 9de90b55317e27f404b300a5d185be05171c4424 [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
Philip Tricca98cb9042017-07-25 09:02:52 -070011env:
12 global:
13 - secure: "isEwSgRODxm9JPZAhQUXP0yqPZmrD0PncBmi/y02RT0oq6Aewdag5f7CzrsJoPsaEsFcJJapIzdZLw1KXHkeAIHNhOtSE4y9tZGFBfB35pFIb0a/Im47djYrVlBXs7Ii/PllzW4xRMmhU16phwsU2N1nFyvfo9qma8R4ComL7GXTn4UqTjADg73YfPKr2NMt/6nilLKNLGE8FhjmPKhnlrBmKgCUU9BAyJ8cOR529bLOp4Wo5pGhopCHUKrYqRErISiFNcCRxjVyUEPUjMVT7/1QPGyAS2bpJa0rc2QYH9w+H0GkzliuGjzEUPaWcpDKjTimEym7F1XfmZxe1RPMH70KGsdlqe4UyWnWzsHDKnU/oCngKecx0g1beFSn/Mwfv58uDHZlegUZrstHDdkP4RZJEWyGkYDzuBCJ2UGAKJGnig/CE4w9fXFhCIltOW7/55KB53wwTec7bCXpoWV2LtC9L8TtdmmdwsBa4NHpZuLxAr3zlKt8O72mlVuo8C6iqwXCL32sahf4KGWNgc/X5GirbvsWvokGchB1p3vgwQdb/NZXKM77r7gMbnGhIOGzEmrCB3olaG+3RtF2+5KID/Z1LZHIlXDtrCa8dAmMvBIFvjFe9/L9T75d8GwiaOg2wEfNTb8bAsPsBdyKiYvWpKMIXJEcCTGKOpC9Nr0/+uk="
14 # run coverity scan on gcc build to keep from DOSing coverity
15 - coverity_scan_run_condition='"$CC" = gcc'
16
Teddy Reedc4335c72016-01-13 17:53:59 -080017addons:
18 apt:
19 packages:
20 - autoconf-archive
21 - libcmocka0
22 - libcmocka-dev
Philip Tricca98cb9042017-07-25 09:02:52 -070023 coverity_scan:
24 project:
25 name: "01org/TPM2.0-TSS"
26 description: Build submitted via Travis-CI
27 notification_email: philip.b.tricca@intel.com
28 build_command_prepend: "./configure; make clean"
29 build_command: "make --jobs=$(($(nproc)*2))"
30 branch_pattern: coverity_scan
Teddy Reedc4335c72016-01-13 17:53:59 -080031
Philip Triccac924ed62017-06-18 16:05:32 -070032install:
33 - wget https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm532.tar
34 - sha256sum ibmtpm532.tar | grep -q ^abc0b420257917ccb42a9750588565d5e84a2b4e99a6f9f46c3dad1f9912864f
35 - mkdir ibmtpm532
36 - tar axf ibmtpm532.tar -C ibmtpm532
37 - make -C ibmtpm532/src -j$(nproc)
Teddy Reedc4335c72016-01-13 17:53:59 -080038
39before_script:
40 - ./bootstrap
41
42script:
43 - mkdir ./build
44 - pushd ./build
Philip Triccac924ed62017-06-18 16:05:32 -070045 - ../configure --enable-unit --with-simulatorbin=$(pwd)/../ibmtpm532/src/tpm_server
Teddy Reedc4335c72016-01-13 17:53:59 -080046 - make -j$(nproc)
Philip Triccac924ed62017-06-18 16:05:32 -070047 - make -j$(nproc) check
Philip Triccaf52391c2017-02-15 19:03:18 -080048 - |
49 for LOG in $(ls -1 test/unit/*.log); do
50 echo "${LOG}"
51 cat ${LOG}
52 done
53 - |
54 for LOG in $(ls -1 test/integration/*.log); do
55 echo "${LOG}"
56 cat ${LOG}
57 done
Philip Tricca93cea252017-07-13 14:28:08 -070058 - cat test/tpmclient/tpmclient.log