Travis: only use clang on OSX
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 12 Feb 2019 11:32:25 +0000 (12:32 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 12 Feb 2019 11:32:25 +0000 (12:32 +0100)
gcc is an alias for clang

.travis.yml

index 7b359f2..e6be459 100644 (file)
@@ -1,24 +1,30 @@
 # Travis CI configuration file
 # https://travis-ci.org/collectd/collectd
+language: c
+
 env:
   global:
    # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
    # via the "travis encrypt" command using the project repo's public key
    - secure: "ZdWWp0XX3C4sLIp4lqeQTWC7vt+GsWjmyRiD17T9833NBAW4dddz310I6iyeXe6oX09ZFFiVIN4ogx9ANcNBx9jriGXI2/82nBhpxOJBebet8JCNS5VeTr4rDSfQOKP+Oc+ko5KbbghTuAtO2CFYiH3jZUcn4TdsYbVanf+TwUs="
 
-dist: xenial
-os:
-  - linux
-  - osx
-compiler:
-  - gcc
-  - clang
-language: c
-osx_image: xcode10.1
+matrix:
+  include:
+    - os: osx
+      osx_image: xcode10.1
+    - os: linux
+      dist: xenial
+      compiler: clang
+    - os: linux
+      dist: xenial
+      compiler: gcc
+
 before_install:
   # When building the coverity_scan branch, allow only the first job to continue to avoid travis-ci/travis-ci#1975.
   - if [[ "${TRAVIS_BRANCH}" == "coverity_scan" && ! "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then exit 0; fi
+
 before_script: autoreconf -vif
+
 script:
   - if [[ "${TRAVIS_BRANCH}" == "coverity_scan" ]]; then exit 0; fi
   - ./configure