You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
873 B

machine:
services:
- docker
checkout:
post:
# workaround for known git bug where attempting to fetch a missing commit fails early on the first try
- git submodule update --init --recursive || true
- git submodule sync --recursive
- git submodule deinit -f .
- git submodule update --init --recursive --force
dependencies:
pre:
- sudo pip install cpp-coveralls
- sudo apt-get install -y lcov
- gem install coveralls-lcov
test:
override:
- mkdir -p ~/.ccache
- make distclean
- PX4_DOCKER=1 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
- cpp-coveralls -l coverage.info