]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - .travis.yml
testing: Migrated openssl alg-camellia scenarios to swanctl
[thirdparty/strongswan.git] / .travis.yml
index 99a01d2090dfd3db9733e04cbdd9f8b21d2c781c..e9be72df9c4288f1449e475de33daaa987cde35c 100644 (file)
@@ -3,10 +3,15 @@ language: c
 sudo: required
 dist: trusty
 
+# don't build tags separately
+if: tag IS blank
+
 compiler:
   - gcc
   - clang
 
+cache: ccache
+
 before_install:
   - travis_retry ./scripts/test.sh deps
   - travis_retry ./scripts/test.sh pydeps
@@ -31,6 +36,9 @@ env:
     - 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
@@ -43,25 +51,28 @@ 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: gcc
-      env: TEST=dist
-    - compiler: gcc
-      env: TEST=apidoc
-    - compiler: gcc
-      env: TEST=coverage
+    - 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
@@ -69,8 +80,3 @@ matrix:
     - compiler: gcc
       env: TEST=win32 MONOLITHIC=yes
       dist: precise
-    - compiler: clang
-      env: TEST=fuzzing MONOLITHIC=yes
-    - compiler: clang
-      os: osx
-      env: TEST=osx