From 9debdea34f2e1e6796a8b543efc6e80b80149632 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 1 Dec 2017 11:25:06 +0100 Subject: [PATCH] .travis.yml: Call coverity scan from job 1 only. The logic was inverted. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0dc3ad00..339d2dc5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ compiler: language: c 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 + - if [[ "${TRAVIS_BRANCH}" == "coverity_scan" && ! "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then exit 0; fi - sudo apt-get update -qq - sudo apt-get install -qq --no-install-recommends autotools-dev -- 2.11.0