[monitoring-plugins] travis-ci: Implement a matrix

Jan Wagner git at monitoring-plugins.org
Mon Nov 21 16:10:11 CET 2016


 Module: monitoring-plugins
 Branch: master
 Commit: 39fdd0fc49f87f542c1a75324ef1d335234b3bcb
 Author: Jan Wagner <waja at cyconet.org>
   Date: Mon Nov 21 15:35:41 2016 +0100
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=39fdd0f

travis-ci: Implement a matrix

See https://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix

---

 .travis.yml | 37 ++++++++++++++++++++++---------------
 1 file changed, 22 insertions(+), 15 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index fb8fbe7..3321165 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,28 @@ sudo: required
 dist: trusty
 language: c
 
+env:
+  global:
+    # This is the encrypted COVERITY_SCAN_TOKEN, created via the "travis
+    # encrypt" command using the project repository's public key.
+    - secure: "ggJ9c/VfKcwtrwz/My+ne4My7D8g3qi3vz5Hh+yLiri0+oIXCy313ZD6ssIEY/5beQZEOnuHhBgBJd/Y3clSQNc2M9fRNc+wxOkIO992lgnY0MZJN3y9MLfpqUbTClhU9Fst0qXQqGpI6UI8yz1tj7yKi7DPrycJLRrjMpyTfyo="
+
+matrix:
+  include:
+    - compiler: "gcc"
+      os: linux
+      env:
+        - PLATFORM=linux BITS=64 HOST=x86_64
+      addons:
+        coverity_scan:
+          project:
+            name: "monitoring-plugins/monitoring-plugins"
+            description: "Monitoring Plugins"
+          notification_email: team at monitoring-plugins.org
+          build_command_prepend: tools/setup && ./configure
+          build_command: make
+          branch_pattern: coverity.*
+
 before_install:
   # Trusty related fixed
   # multiverse is no on trusty activated (https://github.com/travis-ci/travis-ci/issues/4979)
@@ -60,18 +82,3 @@ notifications:
   email:
     - team at monitoring-plugins.org
 
-env:
-  global:
-    # This is the encrypted COVERITY_SCAN_TOKEN, created via the "travis
-    # encrypt" command using the project repository's public key.
-    - secure: "ggJ9c/VfKcwtrwz/My+ne4My7D8g3qi3vz5Hh+yLiri0+oIXCy313ZD6ssIEY/5beQZEOnuHhBgBJd/Y3clSQNc2M9fRNc+wxOkIO992lgnY0MZJN3y9MLfpqUbTClhU9Fst0qXQqGpI6UI8yz1tj7yKi7DPrycJLRrjMpyTfyo="
-
-addons:
-  coverity_scan:
-    project:
-      name: "monitoring-plugins/monitoring-plugins"
-      description: "Monitoring Plugins"
-    notification_email: team at monitoring-plugins.org
-    build_command_prepend: tools/setup && ./configure
-    build_command: make
-    branch_pattern: coverity.*



More information about the Commits mailing list