forked from tpm2-software/tpm2-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (53 loc) · 2.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: cpp
compiler:
- gcc
- clang
# This is a lie: we don't need sudo but this is required to get an
# Ubuntu image with a libc that isn't ancient, and with cmocka libs.
sudo: required
dist: trusty
addons:
apt:
packages:
- autoconf-archive
- openssl
- libssl-dev
- libcurl4-openssl-dev
install:
- wget https://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm532.tar
- sha256sum ibmtpm532.tar | grep -q abc0b420257917ccb42a9750588565d5e84a2b4e99a6f9f46c3dad1f9912864f
- mkdir ibmtpm532 && pushd ibmtpm532 && tar xzf ../ibmtpm532.tar && pushd ./src && make
- ./tpm_server &
- popd && popd
- git clone https://github.com/01org/TPM2.0-TSS.git
- pushd TPM2.0-TSS
- git checkout 1.0
- ./bootstrap && ./configure && make -j$(nproc) && sudo make install && popd
- sudo ldconfig /usr/local/lib
- resourcemgr -sim -tpmhost 127.0.0.1 &
- wget http://mirrors.kernel.org/ubuntu/pool/universe/c/cmocka/libcmocka-dev_1.0.1-2_amd64.deb
- wget http://mirrors.kernel.org/ubuntu/pool/universe/c/cmocka/libcmocka0_1.0.1-2_amd64.deb
- sha256sum libcmocka-dev_1.0.1-2_amd64.deb | grep -q edb0dcfa14893b0a03375c4fe3b852043ce8fca8f2397cde340562554f6d50eb
- sha256sum libcmocka0_1.0.1-2_amd64.deb | grep -q 797155b45a8288a860c4ed9dd3f161420f09ebf362de30166d9f6b98bfc27dd0
- sudo dpkg -i libcmocka0_1.0.1-2_amd64.deb
- sudo dpkg -i libcmocka-dev_1.0.1-2_amd64.deb
before_script:
- ./bootstrap
script:
- mkdir ./build
- pushd ./build
- CFLAGS="-Wno-missing-field-initializers -Wno-unused-function" ../configure --enable-unit
- make -j$(nproc)
- make -j$(nproc) check
- make -j$(nproc) clean
- CFLAGS="-Wno-missing-field-initializers -Wno-unused-function" ../configure --enable-unit --without-tcti-socket
- make -j$(nproc)
- make -j$(nproc) check
- make -j$(nproc) clean
- CFLAGS="-Wno-missing-field-initializers -Wno-unused-function" ../configure --enable-unit --without-tcti-device
- make -j$(nproc)
- make -j$(nproc) check
- popd
- pushd ./test/system
- PATH=$(pwd)/../../build/tools:${PATH} ./test_all.sh
- popd