Skip to content

Commit

Permalink
Merge pull request #2329 from nschonni/coverity_scan
Browse files Browse the repository at this point in the history
Coverity scan
  • Loading branch information
nschonni committed Feb 15, 2017
2 parents aff5e8d + 4e52fe8 commit 2b29dc4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ sudo: false
# built with coverage, clang and autotools
# - AUTOTOOLS=yes COVERAGE=yes BUILD=shared

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: "TpS3uet31wPj8l5yjKFMKNHOIHp1Z0W601mCyToSn1+Rp3c6TQAT8kxRmIqp7Etfq7vX+M+KLyEyJZhq0aqmcnov+jm7zvPjNTAV8VrnDL7XdE5cxwqXsxPKCpEnHOAvuCRP0bDYfcK4ds+SP+zIrlFNb83rb+JENHcnDUza5LE="

matrix:
include :
- os: linux
Expand All @@ -40,6 +46,11 @@ matrix:
- llvm-toolchain-precise-3.7
packages:
- clang-3.7
coverity_scan:
project:
name: "sass/libsass"
build_command: ./script/ci-build-libsass
branch_pattern: coverity_scan
- os: linux
compiler: clang
env: AUTOTOOLS=yes COVERAGE=no BUILD=shared
Expand Down
4 changes: 4 additions & 0 deletions script/ci-install-deps
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ else
echo "no dependencies to install"
fi

if [ "x$COVERITY_SCAN_BRANCH" != "x" ]; then
echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
fi

if [ "x$AUTOTOOLS" == "xyes" ]; then
AUTOTOOLS=yes

Expand Down

0 comments on commit 2b29dc4

Please sign in to comment.