]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - .travis.yml
oval-updater: Find vulnerabilities in Linux packages
[thirdparty/strongswan.git] / .travis.yml
index 99176ba00a90081332b163d9b3bd88813dc83e63..e9be72df9c4288f1449e475de33daaa987cde35c 100644 (file)
@@ -3,29 +3,47 @@ language: c
 sudo: required
 dist: trusty
 
+# don't build tags separately
+if: tag IS blank
+
 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
+  - 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
     - LEAK_DETECTIVE=no
     - MONOLITHIC=no
   matrix:
+    - TEST=all
+    - TEST=all MONOLITHIC=yes
+    - TEST=all LEAK_DETECTIVE=yes
     - 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
@@ -33,18 +51,32 @@ env:
     # we can't test Vstr as negative int args are not properly passed to CBs
     - TEST=printf-builtin
     - TEST=printf-builtin LEAK_DETECTIVE=yes
-    - TEST=all
-    - TEST=all MONOLITHIC=yes
-    - TEST=all LEAK_DETECTIVE=yes
 
 matrix:
   include:
+    - compiler: clang
+      os: osx
+      env: TEST=osx
+    - compiler: gcc
+      env: TEST=sonarcloud
+      if: env(SONAR_TOKEN) IS present
+      git:
+        depth: false
+      addons:
+        sonarcloud:
+          organization: "strongswan"
+    - compiler: gcc
+      env: TEST=coverage
+    - compiler: clang
+      env: TEST=fuzzing MONOLITHIC=yes
     - compiler: gcc
       env: TEST=dist
+    - compiler: gcc
+      env: TEST=apidoc
     - 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
-    - compiler: clang
-      os: osx
-      env: TEST=osx
+      dist: precise