diff mbox

travis.yml: Only run coverity when pushing to its branch

Message ID 20161205214904.30129-1-mike.holmes@linaro.org
State New
Headers show

Commit Message

Mike Holmes Dec. 5, 2016, 9:49 p.m. UTC
Normally travis will drop back to the main script when the add on has
run. Disable that behaviour.

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>

---
 .travis.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.9.3
diff mbox

Patch

diff --git a/.travis.yml b/.travis.yml
index adf3307..81dc072 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,7 +47,7 @@  before_install:
         - popd
 
 script:
-
+        - if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
         - ./bootstrap
         - ./configure --enable-test-cpp --enable-test-vald --enable-test-helper --enable-test-perf --enable-user-guides --enable-test-perf-proc --enable-test-example --with-dpdk-path=`pwd`/dpdk/${TARGET}
         - make check
@@ -56,6 +56,7 @@  script:
         - ./configure
         - make doxygen-doc
         - make distcheck
+        - fi
 
 addons:
     coverity_scan: