mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 06:53:34 +08:00
circleci run tests under code coverage (#6273)
* use regular optimization levels for the code coverage build. * the mixer test fails intermittently when built without optimization
This commit is contained in:
+4
-4
@@ -17,9 +17,9 @@ dependencies:
|
||||
|
||||
test:
|
||||
override:
|
||||
- ./Tools/docker_run.sh 'make tests'
|
||||
- ./Tools/docker_run.sh 'make tests_coverage'
|
||||
# copy test results for circleci
|
||||
#- mkdir -p $CIRCLE_TEST_REPORTS/junit/ && cp ./build_posix_sitl_default/JUnitTestResults.xml build_unittest/test_detail.xml $CIRCLE_TEST_REPORTS/junit/
|
||||
#- mkdir -p $CIRCLE_ARTIFACTS && cp -R coverage-html $CIRCLE_ARTIFACTS
|
||||
- mkdir -p $CIRCLE_TEST_REPORTS/junit/ && cp ./build_posix_sitl_default/JUnitTestResults.xml build_unittest/test_detail.xml $CIRCLE_TEST_REPORTS/junit/
|
||||
- mkdir -p $CIRCLE_ARTIFACTS && cp -R coverage-html $CIRCLE_ARTIFACTS
|
||||
# only post to coveralls if not a fork PR
|
||||
#- if [ -z ${CIRCLE_PR_USERNAME}]; then ./Tools/docker_run.sh 'cpp-coveralls -l coverage.info'; fi
|
||||
- if [ -z ${CIRCLE_PR_USERNAME}]; then cpp-coveralls -l coverage.info; fi
|
||||
|
||||
Reference in New Issue
Block a user