daemon: Remove redundant assignment to time_format
[strongswan.git] / .travis.yml
1 language: c
2
3 sudo: required
4 dist: trusty
5
6 compiler:
7   - gcc
8   - clang
9
10 cache: ccache
11
12 before_install:
13   - travis_retry ./scripts/test.sh deps
14   - travis_retry ./scripts/test.sh pydeps
15
16 before_script:
17   - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 || true
18
19 script:
20   - ./scripts/test.sh
21
22 after_success:
23   if [ "$TEST" == "coverage" ]; then
24     bash <(curl -s https://codecov.io/bash);
25   fi
26
27 after_failure:
28   - cat config.log
29
30 env:
31   global:
32     - TESTS_REDUCED_KEYLENGTHS=yes
33     - LEAK_DETECTIVE=no
34     - MONOLITHIC=no
35   matrix:
36     - TEST=default
37     - TEST=default MONOLITHIC=yes
38     - TEST=default LEAK_DETECTIVE=yes
39     - TEST=botan
40     - TEST=botan LEAK_DETECTIVE=yes
41     - TEST=openssl
42     - TEST=openssl LEAK_DETECTIVE=yes
43     - TEST=gcrypt
44     - TEST=gcrypt LEAK_DETECTIVE=yes
45     # we can't test Vstr as negative int args are not properly passed to CBs
46     - TEST=printf-builtin
47     - TEST=printf-builtin LEAK_DETECTIVE=yes
48     - TEST=all
49     - TEST=all MONOLITHIC=yes
50     - TEST=all LEAK_DETECTIVE=yes
51
52 matrix:
53   include:
54     - compiler: gcc
55       env: TEST=dist
56     - compiler: gcc
57       env: TEST=apidoc
58     - compiler: gcc
59       env: TEST=coverage
60     - compiler: gcc
61       env: TEST=sonarcloud
62       git:
63         depth: false
64       addons:
65         sonarcloud:
66           organization: "strongswan"
67     - compiler: gcc
68       env: TEST=win64 MONOLITHIC=yes
69     # this does not work on 14.04 due to a missing @4 decoration for
70     # TryAcquireSRWLockExclusive in MinGW 3.1.0
71     - compiler: gcc
72       env: TEST=win32 MONOLITHIC=yes
73       dist: precise
74     - compiler: clang
75       env: TEST=fuzzing MONOLITHIC=yes
76     - compiler: clang
77       os: osx
78       env: TEST=osx