travis-ci enable codecov (#8090)

This commit is contained in:
Daniel Agar 2017-10-09 02:13:43 -04:00 committed by GitHub
parent 1947a9a176
commit 6f3fe3f3ec
3 changed files with 8 additions and 3 deletions

1
.gitignore vendored
View File

@ -74,3 +74,4 @@ cppcheck
scan-build
*.gcov

View File

@ -20,6 +20,11 @@ matrix:
services:
- docker
env: BUILD_TARGET=tests
- os: linux
sudo: required
services:
- docker
env: BUILD_TARGET=tests_coverage
- os: linux
sudo: required
services:
@ -78,6 +83,8 @@ script:
./Tools/docker_run.sh 'make check_format';
elif [[ "${BUILD_TARGET}" = "tests" ]]; then
./Tools/docker_run.sh 'make tests';
elif [[ "${BUILD_TARGET}" = "tests_coverage" ]]; then
./Tools/docker_run.sh 'make tests_coverage' && bash <(curl -s https://codecov.io/bash);
elif [[ "${BUILD_TARGET}" = "px4_metadata" ]]; then
./Tools/docker_run.sh 'make px4_metadata';
elif [[ "${BUILD_TARGET}" = "clang-tidy" ]]; then

View File

@ -309,9 +309,6 @@ coveralls_upload:
--exclude=src/modules/uavcan/libuavcan \
--root . --build-root build/posix_sitl_default/ --follow-symlinks
codecov_upload:
@/bin/bash -c "bash <(curl -s https://codecov.io/bash)"
# static analyzers (scan-build, clang-tidy, cppcheck)
# --------------------------------------------------------------------
.PHONY: posix_sitl_default-clang scan-build clang-tidy clang-tidy-fix clang-tidy-quiet cppcheck check_stack