mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
circleci upload coverage to coveralls
This commit is contained in:
parent
cc6fc48be2
commit
b6ff406b7f
11
circle.yml
11
circle.yml
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user