-
Notifications
You must be signed in to change notification settings - Fork 378
/
.cirrus.yml
30 lines (30 loc) · 1.35 KB
/
.cirrus.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
task:
env:
CFLAGS: -I/usr/local/include
LDFLAGS: -L/usr/local/lib
LD_LIBRARY_PATH: /usr/local/lib
PKG_CONFIG_PATH: "/usr/local/lib/pkgconfig:/usr/local/libdata/pkgconfig"
PATH: "${PATH}:/usr/local/sbin:/usr/sbin"
ibmtpm_name: ibmtpm1637
TSS2_LOG: "all+ERROR;tcti+TRACE"
freebsd_instance:
image_family: freebsd-14-1
install_script:
- pkg update -f
- pkg upgrade -y
- pkg install -y bash gmake coreutils libtool pkgconf autoconf autoconf-archive e2fsprogs-libuuid py311-pip expect
- python3 -m pip install pyyaml
- pkg install -y automake glib dbus dbus-glib cmocka wget git openssl json-c vim hs-pandoc
- pkg install -y swtpm
- mkdir tss
- cd tss && git clone https://github.com/tpm2-software/tpm2-tss.git
- cd tpm2-tss && ./bootstrap && ./configure --disable-doxygen-doc --enable-tcti-swtpm=yes --enable-tcti-mssim=no --disable-tcti-libtpms --disable-dependency-tracking && gmake -j install
- cd ../../ && rm -rf tss
- mkdir rm
- cd rm && git clone https://github.com/tpm2-software/tpm2-abrmd.git && cd tpm2-abrmd
- ./bootstrap && ./configure --disable-dependency-tracking && gmake -j install
- cd ../../ && rm -rf rm
script:
- ./bootstrap
- ./configure --enable-unit=yes --disable-dependency-tracking --disable-fapi
- gmake -j check || { cat test-suite.log; exit 1; }