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