circleci upload coverage to coveralls

This commit is contained in:
Daniel Agar 2017-01-01 16:54:50 -05:00 committed by Lorenz Meier
parent cc6fc48be2
commit b6ff406b7f

View File

@ -12,17 +12,20 @@ checkout:
dependencies:
pre:
- docker pull px4io/px4-dev-base
- docker pull px4io/px4-dev-nuttx
- sudo pip install cpp-coveralls
- sudo apt-get install -y lcov
- gem install coveralls-lcov
test:
override:
- mkdir -p ~/.ccache
- PX4_DOCKER=1 make tests
- make distclean
- PX4_DOCKER=1 make tests_coverage
# copy test results for circleci
- mkdir -p $CIRCLE_TEST_REPORTS/unittests/ && cp build_unittest/test_detail.xml $CIRCLE_TEST_REPORTS/unittests/
- mkdir -p $CIRCLE_TEST_REPORTS/sitlunittests/ && cp ./build_posix_sitl_default/JUnitTestResults.xml $CIRCLE_TEST_REPORTS/sitlunittests/
- make distclean
- PX4_DOCKER=1 make tests_coverage
- cpp-coveralls -l coverage.info
general:
artifacts: