-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
56 lines (48 loc) · 1.13 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
language: c
python: 2.7
dist: xenial
addons:
apt:
packages:
- expect
- iasl
- lcov
- libcmocka-dev
- libcmocka0
- gnulib
- libglib2.0-dev
- libpixman-1-dev
- libssl-dev
- libtasn1-dev
- nasm
- socat
- uuid-dev
env:
global:
- JOBS="$(($(nproc)*3/2))"
- PREFIX=/usr
- MAKE="make --jobs=$JOBS"
- ACLOCAL_DIR="/usr/share/gnulib/m4"
- TSS2_CONFIG_SITE=${TRAVIS_BUILD_DIR}/.ci/tss2-sys_config.site
matrix:
include:
- compiler: clang
env: SCANBUILD="scan-build --status-bugs" MAKE_TARGET=distcheck
- compiler: gcc
env: SCANBUILD= CONFIG_EXTRA="--enable-code-coverage" MAKE_TARGET=check
after_failure:
- cat test-suite.log
after_success:
- |
if [ "${CONFIG_EXTRA}" == "--enable-code-coverage" ]; then
bash <(curl -s https://codecov.io/bash)
fi
install:
- pip install --user cpp-coveralls
- ./.ci/build-deps.sh --prefix=${PREFIX}
before_script:
- ./bootstrap
script:
- $SCANBUILD ./configure --enable-unit --enable-integration ${CONFIG_EXTRA}
- $SCANBUILD $MAKE $MAKE_TARGET
- $SCANBUILD $MAKE example