]> git.ipfire.org Git - thirdparty/strongswan.git/blob - .travis.yml
66cdfa3a4f5b25a9303b41f09a72e703d0c9abf8
[thirdparty/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 - env: TEST=sonarcloud
59 if: type = push
60 git:
61 depth: false
62 addons:
63 sonarcloud:
64 organization: "strongswan"
65 - env: TEST=osx
66 compiler: clang
67 os: osx
68 - env: TEST=coverage
69 - env: TEST=fuzzing MONOLITHIC=yes
70 compiler: clang
71 - env: TEST=dist
72 - env: TEST=apidoc
73 - env: TEST=win64 MONOLITHIC=yes
74 - env: TEST=win32 MONOLITHIC=yes