]> git.ipfire.org Git - thirdparty/strongswan.git/blame - .travis.yml
travis: Add sleep in after_failure
[thirdparty/strongswan.git] / .travis.yml
CommitLineData
d151cd28
TB
1language: c
2
94a69986 3sudo: required
cfdab423 4dist: xenial
94a69986 5
8932d607
TB
6# don't build tags separately
7if: tag IS blank
8
d151cd28
TB
9compiler:
10 - gcc
d62b6636 11 - clang
d151cd28 12
1bbb736e
TB
13cache: ccache
14
d151cd28 15before_install:
f5481496
TB
16 - travis_retry ./scripts/test.sh deps
17 - travis_retry ./scripts/test.sh pydeps
d151cd28 18
bf5754ad 19before_script:
8486b3b4 20 - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 || true
bf5754ad 21
d151cd28 22script:
d151cd28
TB
23 - ./scripts/test.sh
24
42f7c989
TB
25after_success:
26 if [ "$TEST" == "coverage" ]; then
27 bash <(curl -s https://codecov.io/bash);
28 fi
29
c7c9a50a
TB
30after_failure:
31 - cat config.log
75853dbe 32 - sleep 1
c7c9a50a 33
d151cd28
TB
34env:
35 global:
36 - TESTS_REDUCED_KEYLENGTHS=yes
37 - LEAK_DETECTIVE=no
38 - MONOLITHIC=no
39 matrix:
64d88efa
TB
40 - TEST=all
41 - TEST=all MONOLITHIC=yes
42 - TEST=all LEAK_DETECTIVE=yes
d151cd28
TB
43 - TEST=default
44 - TEST=default MONOLITHIC=yes
45 - TEST=default LEAK_DETECTIVE=yes
9ee23d5e
TB
46 - TEST=botan
47 - TEST=botan LEAK_DETECTIVE=yes
d151cd28
TB
48 - TEST=openssl
49 - TEST=openssl LEAK_DETECTIVE=yes
d151cd28 50 - TEST=gcrypt
3aa78550 51 - TEST=gcrypt LEAK_DETECTIVE=yes
316aa4b4
TB
52 # we can't test Vstr as negative int args are not properly passed to CBs
53 - TEST=printf-builtin
54 - TEST=printf-builtin LEAK_DETECTIVE=yes
d62b6636
TB
55
56matrix:
57 include:
64d88efa
TB
58 - compiler: clang
59 os: osx
60 env: TEST=osx
e2d8833f
TB
61 - compiler: gcc
62 env: TEST=sonarcloud
4a33dcfe 63 if: env(SONAR_TOKEN) IS present
e2d8833f
TB
64 git:
65 depth: false
9c6bcb21
TB
66 addons:
67 sonarcloud:
68 organization: "strongswan"
64d88efa
TB
69 - compiler: gcc
70 env: TEST=coverage
71 - compiler: clang
72 env: TEST=fuzzing MONOLITHIC=yes
73 - compiler: gcc
74 env: TEST=dist
75 - compiler: gcc
76 env: TEST=apidoc
d930d184 77 - compiler: gcc
fd372e13
MW
78 env: TEST=win64 MONOLITHIC=yes
79 - compiler: gcc
80 env: TEST=win32 MONOLITHIC=yes