forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
25 lines (22 loc) · 891 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
test:
override:
- ./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
# only post to coveralls if not a fork PR
- if [ -z ${CIRCLE_PR_USERNAME}]; then cpp-coveralls -l coverage.info; fi