forked from tpm2-software/tpm2-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (38 loc) · 1.05 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
language: cpp
compiler:
- gcc
# 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
- libcmocka0
- libcmocka-dev
- openssl
- libssl-dev
- libcurl4-openssl-dev
install:
- wget http://downloads.sourceforge.net/project/ibmswtpm2/ibmtpm532.tar
- 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 && ./bootstrap && CONFIG_SITE=./lib/default_config.site ./configure && make -j$(nproc) && sudo make install && popd
- sudo ldconfig /usr/local/lib
- resourcemgr -sim -tpmhost 127.0.0.1 &
before_script:
- ./bootstrap
script:
- mkdir ./build
- pushd ./build
- ../configure --enable-unit
- make -j$(nproc)
- make -j$(nproc) check
- sudo make install
- popd
- pushd ./test
- ./test_all.sh
- popd