From: Vincent Bernat Date: Fri, 16 May 2014 08:47:14 +0000 (+0200) Subject: travis: don't do anything if not on the coverity branch X-Git-Tag: 0.7.9~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cddf0a08236b43b7115a638403eba7d8b34cac4a;p=thirdparty%2Flldpd.git travis: don't do anything if not on the coverity branch --- 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