Skip to content

Commit

Permalink
Attempt to setup CoverityScan again
Browse files Browse the repository at this point in the history
  • Loading branch information
noporpoise committed Nov 1, 2015
1 parent a4ff37c commit c8132c0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
# Travis CI configuration
# Note: there are currently issues with limiting coverity to a single compiler
# see https://github.com/travis-ci/travis-ci/issues/1975
# Instead we use a script to decide if we should do anything

language: c
compiler: gcc
os: linux

sudo: false

# Multi language support on TravisCI would be nice
# language: perl
# perl: "5.20"

before_install:
- git submodule update --init --recursive

install:
- ./travis/install.sh
- eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"

script: ./travis/script.sh

env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "GFhh3zDi4MBYXIt7eDv+7rngKfx7oDZrtCqyM7sNN+LgHNkr6ZFpec+oJ/aAnD6KEtwyPAbGkSmyHoDWC6d4F0g1Ye41Xd9KzMXlHQoAnhJo1eesdWNky3cIenPvy4Xvy4i/5l2NtroLoboz7M5frWRN+rcrN/KenApd6lpJjGk="
- secure: "T08ccfH7+agMchVPhAP/MTdVeFonkjlLvbY8nv/jQ5aZeeWP2i1Oop59MVtuaA4Vw1Ickjr1czLsHGob2OyMHwo2otEasMqacvOw38exblvjOptqN7dx2yu0qzBZdHxLd/uOad7HMfgtkVSwgpodeNR6+K+4LcCM7J6+iAWtLME="

addons:
coverity_scan:
Expand All @@ -19,7 +35,7 @@ addons:
description: Build submitted via Travis CI
notification_email: [email protected]
build_command_prepend: git submodule update --init --recursive
build_command: make all
build_command: make
branch_pattern: coverity_scan

notifications:
Expand Down
1 change: 1 addition & 0 deletions configure
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

11 changes: 4 additions & 7 deletions travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

set -e

<<<<<<< HEAD
cd libs && make && cd ..
=======
RUN_TRAVIS=`./travis/run.sh`

if [ "$RUN_TRAVIS" == "yes" ]
# The COVERITY_SCAN_BRANCH environment variable will be set to 1 when the
# Coverity Scan addon is in operation
# Only run if we are not doing Coverity Scan analysis
if [ "${COVERITY_SCAN_BRANCH}" != 1 ]
then

# Set up cpanm, install JSON perl package
Expand All @@ -25,4 +23,3 @@ then
cd libs && make && cd ..

fi
>>>>>>> develop

0 comments on commit c8132c0

Please sign in to comment.