mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 00:35:26 +00:00
travis: add coverity scan integration
R=ted.mielczarek@gmail.com Review URL: https://codereview.chromium.org/2078283002 .
This commit is contained in:
parent
24f5931c5e
commit
83a5552060
10
.travis.yml
10
.travis.yml
|
@ -1,6 +1,9 @@
|
|||
# Travis build integration.
|
||||
# https://docs.travis-ci.com/
|
||||
language: cpp
|
||||
|
||||
# Order here matters for implicit matrix generation and coverity scan.
|
||||
# See scripts/travis-build.sh for details.
|
||||
# TODO: add a clang build as well.
|
||||
compiler:
|
||||
- gcc
|
||||
|
@ -15,9 +18,14 @@ addons:
|
|||
# selection. If clang is added, this should move to be set inside the
|
||||
# matrix.
|
||||
env:
|
||||
- USE_CC=gcc-4.8 USE_CXX=g++-4.8
|
||||
global:
|
||||
- secure: "FPczJ1u7FWGXOtUVf5AONeexfQDYnKRtuNs3phLwlPPAbgAlIc/WeTRSHC8DAb1T8IyPdN3Zi7cqLz0dvPol0iX1fWSfr8YdtW0ea8nUYH5ldmmp6H75FEUJUcISmYwL4WN7TldC6Hnzrlbw/0xmBH8gtAgddtBXKc9P9SwEZvM4OiFMHbMPwZEhRj+D95rfH12lgh3D16nbXGnx3rSNbHszvIxrU2VvlLo9Aa+hbmVj5CsBiNJjhDS64ie+VMTkuzcWNqLRYaGOCQ8ftKAlj/fjGfoKjPDN9dSJg9gW1FjOMPeQo93qhSc/hCmTq7sWxBJu48telinUgESdE5q/8gRf5J05ImWPntZAkC/wQkA20K7Kp/fH1CRaYXQMWKjts8c6dQZ5R4WxE4WXUo5rz573Ti9uyVTLys9whnzaib3YbqYv04irkhpgzo3rd8PF8SXpgK99ySQCcv/Dh7UQuXPpcaknOk2mBySXjQDgpQHHXDN2uUek1HEo5xit8fQuQw3TdPIZ9ZgzQ/c5/Dx6sLWAGEfVH9MN+hy6AiZnJ1JI+XF82kAf1pnf8WddHtlE7pAdWRFQt0iOj9T9esV1/o0VCJVzJLRdpKecF0sTpJxDuan6cFI0tNCkNjHFA5wJKYAvdOPAmYkqre7aIIqSOKy3Fjh9JP9CBJFy7eals9U="
|
||||
matrix:
|
||||
- USE_CC=gcc-4.8 USE_CXX=g++-4.8
|
||||
before_install: ./scripts/travis-checkout.sh
|
||||
script: ./scripts/travis-build.sh
|
||||
|
||||
# Order here matters; see compiler comment above.
|
||||
# TODO: add mac support
|
||||
os:
|
||||
- linux
|
||||
|
|
|
@ -9,6 +9,7 @@ crash-reporting system.
|
|||
* Discussion/Questions: [google-breakpad-discuss@googlegroups.com](https://groups.google.com/d/forum/google-breakpad-discuss)
|
||||
* Developer/Reviews: [google-breakpad-dev@googlegroups.com](https://groups.google.com/d/forum/google-breakpad-dev)
|
||||
* Tests: [![Build Status](https://travis-ci.org/google/breakpad.svg?branch=master)](https://travis-ci.org/google/breakpad)
|
||||
* Coverage [![Coverity Status](https://scan.coverity.com/projects/9215/badge.svg)](https://scan.coverity.com/projects/google-breakpad)
|
||||
|
||||
## Getting started (from master)
|
||||
|
||||
|
|
|
@ -19,6 +19,26 @@ setup_env() {
|
|||
export JOBS=$(( $NCPUS < 4 ? $NCPUS : 4 ))
|
||||
}
|
||||
|
||||
# We have to do this by hand rather than use the coverity addon because of
|
||||
# matrix explosion: https://github.com/travis-ci/travis-ci/issues/1975
|
||||
coverity_scan() {
|
||||
if [ "${TRAVIS_JOB_NUMBER##*.}" != "1" ] || \
|
||||
[ -n "${TRAVIS_TAG}" ] || \
|
||||
[ "${TRAVIS_PULL_REQUEST}" = "true" ]
|
||||
then
|
||||
echo "Skipping coverity scan."
|
||||
return
|
||||
fi
|
||||
|
||||
export COVERITY_SCAN_PROJECT_NAME="${TRAVIS_REPO_SLUG}"
|
||||
export COVERITY_SCAN_NOTIFICATION_EMAIL="google-breakpad-dev@googlegroups.com"
|
||||
export COVERITY_SCAN_BUILD_COMMAND="build"
|
||||
export COVERITY_SCAN_BUILD_COMMAND_PREPEND="git clean -q -x -d -f; git checkout -f"
|
||||
export COVERITY_SCAN_BRANCH_PATTERN="master"
|
||||
|
||||
curl -s "https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh" | bash || :
|
||||
}
|
||||
|
||||
# Do an in-tree build and make sure tests pass.
|
||||
build() {
|
||||
./configure
|
||||
|
@ -38,6 +58,10 @@ main() {
|
|||
setup_env
|
||||
build
|
||||
build_out_of_tree
|
||||
|
||||
# Do scans last as they like to dirty the tree and some tests
|
||||
# expect a clean tree (like code style checks).
|
||||
coverity_scan
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
Loading…
Reference in a new issue