forked from lumag/emv-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
63 lines (58 loc) · 3.01 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
language: c
sudo: false
compiler:
- gcc
- clang
addons:
apt:
packages:
- libconfig-dev
- libpcsclite-dev
- libgcrypt11-dev
- nettle-dev
# This project also uses Coverity Scan https://scan.coverity.com/
# However, the Travis coverity scan addon (as of 19.02.2014) does not fit our needs,
# because then all builds are done as covertiy scans and results send to the server.
# Therefore we reused the old method
# (setting environment variables, download and execute a script).
# Thanks for the bareos for the idea on how to use Coverity Scan.
env:
matrix:
- GCRYPT=yes NETTLE=no
- GCRYPT=no NETTLE=yes
- GCRYPT=yes NETTLE=yes COVERITY_SCAN=1
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
# -- BEGIN Coverity Scan ENV
# The build command with all of the arguments that you would apply to a manual `cov-build`
# Usually this is the same as STANDARD_BUILD_COMMAND, exluding the automated test arguments
- COVERITY_SCAN_BUILD_COMMAND="make check"
# Name of the project
- COVERITY_SCAN_PROJECT_NAME="lumag/emv-tools"
# Email address for notifications related to this build
- COVERITY_SCAN_NOTIFICATION_EMAIL="dbaryshkov@gmail.com"
# Regular expression selects on which branches to run analysis
# Be aware of quotas. Do not run on every branch/commit
- COVERITY_SCAN_BRANCH_PATTERN="master"
# COVERITY_SCAN_TOKEN via "travis encrypt" using the repo's public key
- secure: "ZaKrdsHXIKWzdNx/zbIOD+n9uFLHv8vSl66MB9TidjNMpyVpHyXNk0ZtZ5LPmzOoW8g7QOKCNGqBv0Yv+PhvZYxQg3SzsKgco1Zd4mtPOiTKoRtHhJqTcjrWawjjlgoM4aRTxEQtbPHRn4Ci8FZIfMmmwHoi3QQPpmf8kRvk/XGALrwDo01FRCxYYmj/99KcXjvpeide2fQu8+46+4KmYMaX+ShAsm0/h6Gz9mgrGrhwyW6uLibiXv5rro8hDfGkEPS28HgAqtkprBxWGGVS7nl0sDTUFDKm0+NjjDwQZtYcRjbF/+ZO58RbKXHIV2eijaD0zU/PA5SHxjISkgdT6WsdLXxt45ol943ES5wbGSfDYhNrKr2QW7TioMvm+2otOEx+tU00nLpdaxPzoEhzPO+PfyWO9ELmzob6Lbn3j0DwBWYdSApCcUld6TMWpuhaGdY4Alg43qtPYU6MHCyEWVMW9WFMQuewAkH3Y/jmFUxQqa7NQmgWo53NmUmfEBSdeIZ7VbNlTLPCYe5bUPw0JafKc7CbOlgSQSzhpNTJH+hWpGk2+AzRyCjI2zHgYcPqcU3Mo1bZtlAYy5nae2n8FBZJ4P8cdZ4wx7uEqRBMPFGCst5UpiZnn4cdOOZywr7mWz5it5quXDGf57P6mofcssu+bo9E1BvkJXTut028qgA="
- COVERITY_SCAN_BUILD_URL="https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh"
- COVERITY_SCAN_BUILD="curl -s $COVERITY_SCAN_BUILD_URL | bash"
# -- END Coverity Scan ENV
matrix:
# covertiy scan should only run once and it might fail,
# because the number of times its runs is limited per week.
# We only check when compiled with gcc.
exclude:
- compiler: clang
env: GCRYPT=yes NETTLE=yes COVERITY_SCAN=1
allow_failures:
- env: GCRYPT=yes NETTLE=yes COVERITY_SCAN=1
before_script:
- autoreconf -vfi
script:
- mkdir -p build
- cd build
- ../configure --enable-scard-emu --enable-scard-apduio --enable-crypto-libgcrypt=${GCRYPT} --enable-crypto-nettle=${NETTLE}
- if [ -z "${COVERITY_SCAN}" ] ; then make check ; else eval "$COVERITY_SCAN_BUILD"; fi