forked from Archive/PX4-Autopilot
travis-ci fix coverity build
This commit is contained in:
parent
456227f39e
commit
e5cc1237e3
10
.travis.yml
10
.travis.yml
|
@ -39,20 +39,14 @@ cache:
|
||||||
before_install:
|
before_install:
|
||||||
# install dependencies for the coverity build (target and branch), otherwise exit early
|
# install dependencies for the coverity build (target and branch), otherwise exit early
|
||||||
- if [[ "${TRAVIS_BRANCH}" = "coverity_scan" ]]; then
|
- if [[ "${TRAVIS_BRANCH}" = "coverity_scan" ]]; then
|
||||||
if [[ "${BUILD_TARGET}" = "coverity_scan" ]]; then
|
sudo pip install empy jinja2 numpy toml;
|
||||||
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-;
|
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
|
|
||||||
fi
|
fi
|
||||||
# use git:// to fetch instead of https://
|
# use git:// to fetch instead of https://
|
||||||
- git config --global url."git://".insteadOf https://
|
- git config --global url."git://".insteadOf https://
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [[ "${BUILD_TARGET}" != "coverity_scan" ]]; then
|
- ./Tools/docker_run.sh make ${BUILD_TARGET}
|
||||||
./Tools/docker_run.sh make ${BUILD_TARGET};
|
|
||||||
fi
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# upload code coverage
|
# upload code coverage
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -235,6 +235,10 @@ check_%:
|
||||||
@$(MAKE) --no-print-directory $(subst check_,,$@)
|
@$(MAKE) --no-print-directory $(subst check_,,$@)
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
|
.PHONY: coverity_scan
|
||||||
|
|
||||||
|
coverity_scan: posix_sitl_default
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
.PHONY: parameters_metadata airframe_metadata module_documentation px4_metadata
|
.PHONY: parameters_metadata airframe_metadata module_documentation px4_metadata
|
||||||
|
|
Loading…
Reference in New Issue