diff options
author | dequis <dx@dxzone.com.ar> | 2015-11-05 05:46:04 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-11-05 05:58:24 -0300 |
commit | f2ca48a6f79f41b9d1e29016e2cd6b9c5df39089 (patch) | |
tree | 2db38a991e484129d28ad1e63b090432785a9e69 | |
parent | 510267ca25edac5c8950cf769366c6395bd46975 (diff) | |
download | bitlbee-facebook-f2ca48a6f79f41b9d1e29016e2cd6b9c5df39089.tar.gz bitlbee-facebook-f2ca48a6f79f41b9d1e29016e2cd6b9c5df39089.tar.bz2 bitlbee-facebook-f2ca48a6f79f41b9d1e29016e2cd6b9c5df39089.tar.xz |
travis: Remove coverity_scan addon, call it manually for job 1 only
See https://github.com/travis-ci/travis-ci/issues/1975
Since the addon doesn't handle the job matrix very well, I copied one of
the suggestions from that thread, which does pretty much the same as the
addon but in a place we can control.
-rw-r--r-- | .travis.yml | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/.travis.yml b/.travis.yml index c867475..af235c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,22 +12,15 @@ compiler: env: global: - secure: "RyCpkq3KU8zftQfD54rNERzzygzLfJtQQXG13LnsIj3NSx5Attr6aM1lZKLWEEgjpkiEuhXkmcwmOuQJfEqYHxYQ24SSKihE9AvEBrOGNuY8CB4SFZEs+atRgovi2SrttdVOU3AzlZSgUUAaHNBUaC7QgimODAyCPV9KfuQkJEw=" + - COVERITY_SCAN_PROJECT_NAME=jgeboski/bitlbee-facebook + - COVERITY_SCAN_NOTIFICATION_EMAIL=nope + - COVERITY_SCAN_BUILD_COMMAND=make + - COVERITY_SCAN_BRANCH_PATTERN=coverity_scan 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 - sudo apt-get install -qq @@ -61,11 +54,9 @@ install: - cd - script: + - CFLAGS="-Werror" ./autogen.sh --enable-warnings - | - if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then - CFLAGS="-Werror" ./autogen.sh --enable-warnings - fi - - | - if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then - ${ANALYZER} make + if [[ "${TRAVIS_JOB_NUMBER##*.}" == "1" ]]; then + curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || true fi + - ${ANALYZER} make |