From a0e06ca32671f4190112e86443b1db4b9b2ead14 Mon Sep 17 00:00:00 2001 From: Sean V Kelley Date: Sun, 29 Jan 2017 14:08:03 -0800 Subject: [PATCH] travis: Configure for a coverity scan branch Also reduce waste of resources, avoiding duplicate builds Signed-off-by: Sean V Kelley --- .travis.yml | 21 +++++++++++++-------- README.md | 1 + 2 files changed, 14 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 diff --git a/README.md b/README.md index a6ba37e..3968151 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ [![Stories in Ready](https://badge.waffle.io/01org/libva.png?label=ready&title=Ready)](http://waffle.io/01org/libva) [![Build Status](https://travis-ci.org/01org/ciao.svg?branch=master)](https://travis-ci.org/01org/libva) [![Coverage Status](https://coveralls.io/repos/github/01org/libva/badge.svg?branch=master)](https://coveralls.io/github/01org/libva?branch=master) +[![Coverity Scan Build Status](https://scan.coverity.com/projects/1105/badge.svg)](https://scan.coverity.com/projects/01org-libva) #Libva Project -- 2.11.0