daemon: Remove redundant assignment to time_format
[strongswan.git] / .travis.yml
index a0dfbb6..504e118 100644 (file)
@@ -1,16 +1,32 @@
 language: c
 
+sudo: required
+dist: trusty
+
 compiler:
   - gcc
   - clang
 
+cache: ccache
+
 before_install:
-  - ./scripts/test.sh deps
-  - ./scripts/test.sh pydeps
+  - travis_retry ./scripts/test.sh deps
+  - travis_retry ./scripts/test.sh pydeps
+
+before_script:
+  - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 || true
 
 script:
   - ./scripts/test.sh
 
+after_success:
+  if [ "$TEST" == "coverage" ]; then
+    bash <(curl -s https://codecov.io/bash);
+  fi
+
+after_failure:
+  - cat config.log
+
 env:
   global:
     - TESTS_REDUCED_KEYLENGTHS=yes
@@ -20,6 +36,8 @@ env:
     - TEST=default
     - TEST=default MONOLITHIC=yes
     - TEST=default LEAK_DETECTIVE=yes
+    - TEST=botan
+    - TEST=botan LEAK_DETECTIVE=yes
     - TEST=openssl
     - TEST=openssl LEAK_DETECTIVE=yes
     - TEST=gcrypt
@@ -36,9 +54,25 @@ matrix:
     - compiler: gcc
       env: TEST=dist
     - compiler: gcc
+      env: TEST=apidoc
+    - compiler: gcc
+      env: TEST=coverage
+    - compiler: gcc
+      env: TEST=sonarcloud
+      git:
+        depth: false
+      addons:
+        sonarcloud:
+          organization: "strongswan"
+    - compiler: gcc
       env: TEST=win64 MONOLITHIC=yes
+    # this does not work on 14.04 due to a missing @4 decoration for
+    # TryAcquireSRWLockExclusive in MinGW 3.1.0
     - compiler: gcc
       env: TEST=win32 MONOLITHIC=yes
+      dist: precise
+    - compiler: clang
+      env: TEST=fuzzing MONOLITHIC=yes
     - compiler: clang
       os: osx
       env: TEST=osx