diff options
author | Jan Wagner <waja@cyconet.org> | 2014-02-16 19:17:16 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-02-16 20:00:55 +0100 |
commit | 182430de46f84cda1c7c1097b60b0dcb074c9c3d (patch) | |
tree | 32d7ca1155b5099237cb2234f7f4feb3b9f33a9e | |
parent | b120c757133e20c9d657a0d8d9577eccd3363bf7 (diff) | |
download | monitoring-plugins-182430de46f84cda1c7c1097b60b0dcb074c9c3d.tar.gz |
travis-ci: Add configuration for Coverity Scan
Run Coverity Scan builds on Travis CI, but only when pushing into the
"coverity" branch.
-rw-r--r-- | .travis.yml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index c9ae80f9..339648f6 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -12,7 +12,7 @@ before_script: | |||
12 | - ./configure | 12 | - ./configure |
13 | 13 | ||
14 | script: | 14 | script: |
15 | - make | 15 | - if [ "$COVERITY_SCAN_BRANCH" != 1 ]; then make; fi |
16 | 16 | ||
17 | compiler: | 17 | compiler: |
18 | - clang | 18 | - clang |
@@ -26,3 +26,25 @@ notifications: | |||
26 | on_failure: always | 26 | on_failure: always |
27 | skip_join: true | 27 | skip_join: true |
28 | # email: false | 28 | # email: false |
29 | |||
30 | # Don't use Clang for Coverity Scan. | ||
31 | matrix: | ||
32 | exclude: | ||
33 | - compiler: clang | ||
34 | - env: COVERITY_SCAN_BRANCH=1 | ||
35 | |||
36 | env: | ||
37 | global: | ||
38 | # This is the encrypted COVERITY_SCAN_TOKEN, created via the "travis | ||
39 | # encrypt" command using the project repository's public key. | ||
40 | - secure: "ggJ9c/VfKcwtrwz/My+ne4My7D8g3qi3vz5Hh+yLiri0+oIXCy313ZD6ssIEY/5beQZEOnuHhBgBJd/Y3clSQNc2M9fRNc+wxOkIO992lgnY0MZJN3y9MLfpqUbTClhU9Fst0qXQqGpI6UI8yz1tj7yKi7DPrycJLRrjMpyTfyo=" | ||
41 | |||
42 | addons: | ||
43 | coverity_scan: | ||
44 | project: | ||
45 | name: "monitoring-plugins/monitoring-plugins" | ||
46 | description: "Monitoring Plugins" | ||
47 | notification_email: team@monitoring-plugins.org | ||
48 | build_command_prepend: tools/setup && ./configure | ||
49 | build_command: make | ||
50 | branch_pattern: coverity | ||