travis: Add sleep in after_failure
[strongswan.git] / .travis.yml
1 language: c
2
3 sudo: required
4 dist: xenial
5
6 # don't build tags separately
7 if: tag IS blank
8
9 compiler:
10   - gcc
11   - clang
12
13 cache: ccache
14
15 before_install:
16   - travis_retry ./scripts/test.sh deps
17   - travis_retry ./scripts/test.sh pydeps
18
19 before_script:
20   - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 || true
21
22 script:
23   - ./scripts/test.sh
24
25 after_success:
26   if [ "$TEST" == "coverage" ]; then
27     bash <(curl -s https://codecov.io/bash);
28   fi
29
30 after_failure:
31   - cat config.log
32   - sleep 1
33
34 env:
35   global:
36     - TESTS_REDUCED_KEYLENGTHS=yes
37     - LEAK_DETECTIVE=no
38     - MONOLITHIC=no
39   matrix:
40     - TEST=all
41     - TEST=all MONOLITHIC=yes
42     - TEST=all LEAK_DETECTIVE=yes
43     - TEST=default
44     - TEST=default MONOLITHIC=yes
45     - TEST=default LEAK_DETECTIVE=yes
46     - TEST=botan
47     - TEST=botan LEAK_DETECTIVE=yes
48     - TEST=openssl
49     - TEST=openssl LEAK_DETECTIVE=yes
50     - TEST=gcrypt
51     - TEST=gcrypt LEAK_DETECTIVE=yes
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
55
56 matrix:
57   include:
58     - compiler: clang
59       os: osx
60       env: TEST=osx
61     - compiler: gcc
62       env: TEST=sonarcloud
63       if: env(SONAR_TOKEN) IS present
64       git:
65         depth: false
66       addons:
67         sonarcloud:
68           organization: "strongswan"
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
77     - compiler: gcc
78       env: TEST=win64 MONOLITHIC=yes
79     - compiler: gcc
80       env: TEST=win32 MONOLITHIC=yes