Skip to content

Commit

Permalink
travis-ci coverity abort early
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Jun 2, 2017
1 parent 6a249c7 commit 0ac237f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ git:
matrix:
fast_finish: true
include:
- os: linux
sudo: required
services:
- docker
env: BUILD_TARGET=quick_check
- os: linux
sudo: required
services:
Expand Down Expand Up @@ -39,6 +44,8 @@ matrix:
services:
- docker
env: BUILD_TARGET=px4_metadata
- os: linux
env: BUILD_TARGET=coverity_scan

cache:
ccache: true
Expand All @@ -56,8 +63,12 @@ env:
- secure: "h6oajlW68dWIr+wZhO58Dv6e68dZHrBLVA6lPXZmheFQBW6Xam1HuLGA0LOW6cL9TnrAsOZ8g4goB58eMQnMEijFZKi3mhRwZhd/Xjq/ZGJOWBUrLoQHZUw2dQk5ja5vmUlKEoQnFZjDuMjx8KfX5ZMNy8A3yssWZtJYHD8c+bk="

script:
- if [[ "${TRAVIS_BRANCH}" == "coverity" ]]; then
- if [[ "${TRAVIS_BRANCH}" == "coverity" && "${BUILD_TARGET}" == "coverity_scan" ]]; then
echo "no script for coverity build";
elif [[ "${TRAVIS_BRANCH}" == "coverity" && "${BUILD_TARGET}" != "coverity_scan" ]]; then
echo "exit early for coverity build" && exit 0;
elif [[ "${BUILD_TARGET}" = "quick_check" ]]; then
./Tools/docker_run.sh 'make quick_check NO_NINJA_BUILD=1';
elif [[ "${BUILD_TARGET}" = "check_format" ]]; then
./Tools/docker_run.sh 'make check_format';
elif [[ "${BUILD_TARGET}" = "tests" ]]; then
Expand Down

0 comments on commit 0ac237f

Please sign in to comment.