summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorSean V Kelley <seanvk@posteo.de>2017-01-29 15:05:58 -0800
committerSean V Kelley <seanvk@posteo.de>2017-01-29 15:05:58 -0800
commit91c1308ed353a393224fb28d5a6744ee78059979 (patch)
treeda3e40e6cab04fb094c4ca2754821fa67e5077ba /.travis.yml
parent43859024e5c02eeeb8b509ebac08c7642b302008 (diff)
downloadlibva-intel-driver-91c1308ed353a393224fb28d5a6744ee78059979.tar.gz
travis: Add support for coverity scan to travis
Signed-off-by: Sean V Kelley <seanvk@posteo.de>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml32
1 files changed, 26 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index a77c0150..9b5756be 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,8 +8,13 @@ os: linux
env:
global:
- NUM_THREADS=4
+ # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
+ # via the "travis encrypt" command using the project repo's public key
+ - secure: "jDJjgRpAzAUYfnYhE5Y01OZcIiuAvrG/M14VuESjnoOWja/vkFa/Eg2t4ZY/rQXIGkMhCdjXttdQWLgy+00htVtGQmCAM42FnpeCak1Ln4qnIbudThAgRkS77kJLaSNfW+DahKP0RKv/GtNf3p0WwLBBA2ji3h7Mcz1kMz6UhTE="
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
- sudo apt-get install -y build-essential
@@ -34,11 +39,26 @@ install:
- git clone https://github.com/01org/libva.git
- (cd libva && ./autogen.sh && ./configure --prefix=/usr && sudo make install)
+addons:
+ coverity_scan:
+ project:
+ name: "01org/intel-vaapi-driver"
+ 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: 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'
@@ -46,8 +66,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