forked from opencryptoki/opencryptoki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (71 loc) · 3.76 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
os: linux
dist: jammy
language: c
before_install:
- if [[ "$TRAVIS_DIST" != "focal" ]]; then sudo apt-get -qq update; fi
- sudo apt-get install -y expect libldap2-dev wget libudev-dev autoconf-archive libcap-dev pv
- if [[ "$TRAVIS_CPU_ARCH" != "amd64" ]]; then sudo apt-get install -y trousers libtspi-dev; fi
- if [[ "$TRAVIS_CPU_ARCH" = "s390x" && "$TRAVIS_DIST" != "focal" ]]; then sudo apt-get install -y libica4 libica-dev; fi
- if [[ "$TRAVIS_CPU_ARCH" = "s390x" && "$TRAVIS_DIST" = "focal" ]]; then sudo apt-get install -y libica3 libica-dev; fi
jobs:
include:
- name: "linux-x86-clang"
os: linux
compiler: clang
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-testcases --with-systemd" CFLAGS="-O3 -Werror -Wno-error=unused-but-set-variable -DDEBUG"
- name: "linux-x86-gcc"
os: linux
compiler: gcc
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-testcases --with-systemd" CFLAGS="-O3 -Wno-clobbered -Werror"
- name: "linux-ppc64le-clang"
os: linux
arch: ppc64le
compiler: clang
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --with-systemd" CFLAGS="-O3 -Werror"
- name: "linux-ppc64le-gcc"
os: linux
arch: ppc64le
compiler: gcc
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --with-systemd" CFLAGS="-O3 -Wno-clobbered -Werror -DDEBUG"
- name: "linux-s390x-clang"
os: linux
arch: s390x
compiler: clang
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-icatok --enable-ep11tok --enable-testcases --with-systemd" CFLAGS="-O3 -Werror -DDEBUG"
- name: "linux-s390x-gcc"
os: linux
arch: s390x
compiler: gcc
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-icatok --enable-ep11tok --enable-testcases --with-systemd" CFLAGS="-O3 -Wno-clobbered -Werror"
- name: "linux-arm64-clang"
os: linux
arch: arm64
compiler: clang
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --with-systemd" CFLAGS="-O3 -Werror"
- name: "linux-arm64-gcc"
os: linux
arch: arm64
compiler: gcc
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --with-systemd" CFLAGS="-O3 -Wno-clobbered -Werror -DDEBUG"
- name: "linux-s390x-gcc-openssl-1.1.1"
os: linux
dist: focal
arch: s390x
compiler: gcc
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-icatok --enable-ep11tok --enable-testcases --with-systemd" CFLAGS="-O3 -Wno-clobbered -Werror"
before_script:
- ./bootstrap.sh 2> >(tee)
script:
- set -o pipefail
- openssl version 2> >(tee)
- ./configure --silent $CONFIG_OPTS 2> >(tee) && make -j 5 V=0 2> >(tee)
- make check V=0 2> >(tee)
- sudo make install 2> >(tee)
- sudo ldconfig 2> >(tee)
- sudo pkcsslotd 2> >(tee)
- sudo pkcsconf -i 2> >(tee)
- sudo pkcsconf -s 2> >(tee)
- sudo pkcsconf -t 2> >(tee)
- cd testcases
- sudo PKCS11_SO_PIN=76543210 PKCS11_USER_PIN=01234567 PKCSLIB=/usr/local/lib/pkcs11/libopencryptoki.so ./ock_tests.sh -s 3 | grep --line-buffered -A 2 -B 2 "SKIP\|FAIL\|ERROR\|Total=\|Now executing" | pv -t -i 1 -f
- sudo SLOT=3 PKCS11_USER_PIN=01234567 PKCS11_SO_PIN=76543210 PKCSLIB=/usr/local/lib/pkcs11/libopencryptoki.so ./misc_tests/p11sak_test.sh 2> >(tee)