From cddf0a08236b43b7115a638403eba7d8b34cac4a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 16 May 2014 10:47:14 +0200 Subject: [PATCH] travis: don't do anything if not on the coverity branch --- .travis/install.sh | 5 +++++ .travis/run.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.travis/install.sh b/.travis/install.sh index 2bfedced..153443ba 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -4,6 +4,11 @@ set -e +if [ x"${RUN_COVERITY}" = x"1" ] && \ + [ x"${COVERITY_SCAN_BRANCH_PATTERN}" != x"${TRAVIS_BRANCH}" ]; then + exit 0 +fi + case "$(uname -s)" in Darwin) # OS X diff --git a/.travis/run.sh b/.travis/run.sh index ef102cf5..419e43a9 100755 --- a/.travis/run.sh +++ b/.travis/run.sh @@ -2,6 +2,11 @@ set -e +if [ x"${RUN_COVERITY}" = x"1" ] && \ + [ x"${COVERITY_SCAN_BRANCH_PATTERN}" != x"${TRAVIS_BRANCH}" ]; then + exit 0 +fi + ./autogen.sh ./configure $LLDPD_CONFIG_ARGS -- 2.39.5