travis-ci fix coverity build

This commit is contained in:
Daniel Agar 2017-11-21 23:37:34 -05:00
parent 456227f39e
commit e5cc1237e3
2 changed files with 7 additions and 9 deletions

View File

@ -39,20 +39,14 @@ cache:
before_install:
# install dependencies for the coverity build (target and branch), otherwise exit early
- if [[ "${TRAVIS_BRANCH}" = "coverity_scan" ]]; then
if [[ "${BUILD_TARGET}" = "coverity_scan" ]]; then
sudo apt-get install python-empy python-jinja2 python-toml python-numpy;
echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-;
else
exit 0;
fi
sudo pip install empy jinja2 numpy toml;
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
# use git:// to fetch instead of https://
- git config --global url."git://".insteadOf https://
script:
- if [[ "${BUILD_TARGET}" != "coverity_scan" ]]; then
./Tools/docker_run.sh make ${BUILD_TARGET};
fi
- ./Tools/docker_run.sh make ${BUILD_TARGET}
after_success:
# upload code coverage

View File

@ -235,6 +235,10 @@ check_%:
@$(MAKE) --no-print-directory $(subst check_,,$@)
@echo
.PHONY: coverity_scan
coverity_scan: posix_sitl_default
# Documentation
# --------------------------------------------------------------------
.PHONY: parameters_metadata airframe_metadata module_documentation px4_metadata