From e64da6e219abe4940f1481b785dd1af8fb334a54 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 29 Nov 2017 07:39:40 +0100 Subject: [PATCH] Run coverty scan on cron triggers This is so we can setup a weekly cron trigger of master, to run the coverty scan. Signed-off-by: Anton Lundin --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index ca43be04a..b49df53e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,6 +42,8 @@ matrix: branch_pattern: coverity_scan before_install: + # When the build on this branch gets triggered by travis-cron, do a coverty scan. + - if [ "$TRAVIS_EVENT_TYPE" = "cron" ] ; then export COVERITY_SCAN_BRANCH=1 ; fi - source ${TRAVIS_BUILD_DIR}/scripts/${SUBSURFACE_PLATFORM}/before_install.sh script: