aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml29
1 files changed, 25 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 5783c57..c867475 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,8 +10,23 @@ compiler:
- gcc
env:
- - ANALYZER=""
- - ANALYZER="scan-build -k --status-bugs"
+ global:
+ - secure: "RyCpkq3KU8zftQfD54rNERzzygzLfJtQQXG13LnsIj3NSx5Attr6aM1lZKLWEEgjpkiEuhXkmcwmOuQJfEqYHxYQ24SSKihE9AvEBrOGNuY8CB4SFZEs+atRgovi2SrttdVOU3AzlZSgUUAaHNBUaC7QgimODAyCPV9KfuQkJEw="
+
+ matrix:
+ - ANALYZER=""
+ - ANALYZER="scan-build -k --status-bugs"
+
+addons:
+ coverity_scan:
+ project:
+ name: jgeboski/bitlbee-facebook
+ version: git
+ description: bitlbee-facebook
+
+ build_command_prepend: ./autogen.sh
+ build_command: make
+ branch_pattern: coverity_scan
before_install:
- sudo apt-get update -qq
@@ -46,5 +61,11 @@ install:
- cd -
script:
- - CFLAGS="-Werror" ./autogen.sh --enable-warnings
- - ${ANALYZER} make
+ - |
+ if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then
+ CFLAGS="-Werror" ./autogen.sh --enable-warnings
+ fi
+ - |
+ if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then
+ ${ANALYZER} make
+ fi