forked from opencryptoki/opencryptoki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (62 loc) · 3.31 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
sudo: required
dist: bionic
language: c
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y expect trousers libldap2-dev libtspi-dev wget
- sudo wget https://launchpad.net/ubuntu/+archive/primary/+files/libica3_3.4.0-0ubuntu1_s390x.deb
- sudo wget https://launchpad.net/ubuntu/+archive/primary/+files/libica-dev_3.4.0-0ubuntu1_s390x.deb
- sudo dpkg -i libica3_3.4.0-0ubuntu1_s390x.deb || true # icatok needs libica >= 3.3
- sudo dpkg -i libica-dev_3.4.0-0ubuntu1_s390x.deb || true # but install otherwise fails for non-s390x
matrix:
include:
# TODO: Appease -Wclobbered in tm builds.
- name: "linux-x86-clang-locks"
os: linux
compiler: clang
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --enable-locks" CFLAGS="-O3 -Wextra -std=c99 -pedantic -Werror -DDEBUG"
- name: "linux-x86-gcc-tm"
os: linux
compiler: gcc
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --disable-locks" CFLAGS="-O3 -Wno-clobbered -Wextra -std=c99 -pedantic -Werror"
- name: "linux-ppc64le-clang-locks"
os: linux-ppc64le
compiler: clang
env: CONFIG_OPTS="--enable-swtok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --enable-locks" CFLAGS="-O3 -Wextra -std=c99 -pedantic -Werror"
- name: "linux-ppc64le-gcc-tm"
os: linux-ppc64le
compiler: gcc
env: CONFIG_OPTS="--enable-swttok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --disable-locks" CFLAGS="-O3 -Wno-clobbered -Wextra -std=c99 -pedantic -Werror -DDEBUG"
- name: "linux-s390x-clang-locks"
os: linux
arch: s390x
compiler: clang
env: CONFIG_OPTS="--enable-swttok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-icatok --enable-ep11tok --enable-testcases --enable-locks" CFLAGS="-O3 -Wextra -std=c99 -pedantic -Werror -DDEBUG"
- name: "linux-s390x-gcc-tm"
os: linux
arch: s390x
compiler: gcc
env: CONFIG_OPTS="--enable-swttok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-icatok --enable-ep11tok --enable-testcases --disable-locks" CFLAGS="-O3 -Wno-clobbered -Wextra -std=c99 -pedantic -Werror"
- name: "linux-arm64-clang-locks"
os: linux
arch: arm64
compiler: clang
env: CONFIG_OPTS="--enable-swttok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --enable-locks" CFLAGS="-O3 -Wextra -std=c99 -pedantic -Werror"
- name: "linux-arm64-gcc-tm"
os: linux
arch: arm64
compiler: gcc
env: CONFIG_OPTS="--enable-swttok --enable-icsftok --enable-ccatok --enable-tpmtok --enable-testcases --disable-locks" CFLAGS="-O3 -Wno-clobbered -Wextra -std=c99 -pedantic -Werror -DDEBUG"
before_script:
- sudo groupadd pkcs11
- ./bootstrap.sh
script:
- ./configure $CONFIG_OPTS && make
- sudo make install
- sudo ldconfig
- sudo pkcsslotd
- sudo pkcsconf -i
- sudo pkcsconf -s
- sudo pkcsconf -t
- cd testcases
- sudo PKCS11_SO_PIN=87654321 PKCS11_USER_PIN=01234567 PKCSLIB=/usr/local/lib/pkcs11/libopencryptoki.so ./ock_tests.sh -s 3