summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorSean V Kelley <seanvk@posteo.de>2017-01-29 14:08:03 -0800
committerSean V Kelley <seanvk@posteo.de>2017-01-29 14:08:03 -0800
commita0e06ca32671f4190112e86443b1db4b9b2ead14 (patch)
tree704868d3579bf9c6010e57c788698c270c6ebd7a /.travis.yml
parentea4fa9f18d5e9eb0f4828118875aff531358995f (diff)
downloadlibva-a0e06ca32671f4190112e86443b1db4b9b2ead14.tar.gz
travis: Configure for a coverity scan branch
Also reduce waste of resources, avoiding duplicate builds Signed-off-by: Sean V Kelley <seanvk@posteo.de>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml21
1 files changed, 13 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 1cb6534..325cdbd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,6 +14,7 @@ env:
before_install:
+ - test "${TRAVIS_BRANCH}" != 'coverity_scan' -o "${TRAVIS_JOB_NUMBER##*.}" = '1' || exit 0
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- pip install --user cpp-coveralls
- sudo apt-get -qq update
@@ -39,16 +40,20 @@ addons:
project:
name: "01org/libva"
description: "Build submitted via Travis CI"
- notification_email: sean.v.kelley@intel.com
build_command_prepend: "./autogen.sh; ./configure --prefix=/usr"
build_command: "make -j4"
- branch_pattern: master
+ branch_pattern: coverity_scan
script:
- - ./autogen.sh
- - ./configure --prefix=/usr
- - make -j4 ; sudo make install
- - make check
+ - if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]];
+ then
+ echo "Don't build on coverty_scan branch.";
+ exit 0;
+ fi
+ - ./autogen.sh
+ - ./configure --prefix=/usr
+ - make -j4 ; sudo make install
+ - make check
after_success:
- coveralls --exclude lib --exclude tests --gcov-options '\-lp'
@@ -56,8 +61,8 @@ after_success:
notifications:
# Emails are sent to the committer's git-configured email address by default,
# but only if they have access to the repository. To enable Travis on your
-# public fork of Caffe, just go to travis-ci.org and flip the switch on for
-# your Caffe fork. To configure your git email address, use:
+# public project, just go to travis-ci.org and flip the switch on for
+# your project. To configure your git email address, use:
# git config --global user.email me@example.com
email:
on_success: always