2016-06-13 18:39:30 -03:00
|
|
|
machine:
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
checkout:
|
|
|
|
post:
|
2016-09-05 01:47:48 -03:00
|
|
|
# workaround for known git bug where attempting to fetch a missing commit fails early on the first try
|
2016-10-03 13:59:40 -03:00
|
|
|
- git submodule update --init --recursive || true
|
2016-06-24 21:21:46 -03:00
|
|
|
- git submodule sync --recursive
|
2016-10-03 13:59:40 -03:00
|
|
|
- git submodule deinit -f .
|
|
|
|
- git submodule update --init --recursive --force
|
2016-06-13 18:39:30 -03:00
|
|
|
|
|
|
|
dependencies:
|
|
|
|
pre:
|
2017-01-01 17:54:50 -04:00
|
|
|
- sudo pip install cpp-coveralls
|
|
|
|
- sudo apt-get install -y lcov
|
|
|
|
- gem install coveralls-lcov
|
2016-06-13 18:39:30 -03:00
|
|
|
|
|
|
|
test:
|
|
|
|
override:
|
2016-12-31 20:49:07 -04:00
|
|
|
- mkdir -p ~/.ccache
|
2017-01-01 17:54:50 -04:00
|
|
|
- make distclean
|
2017-01-03 19:16:10 -04:00
|
|
|
- PX4_DOCKER=1 make tests
|
2016-12-31 17:34:07 -04:00
|
|
|
# copy test results for circleci
|
2017-01-03 19:16:10 -04:00
|
|
|
#- 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
|
2017-01-03 03:51:08 -04:00
|
|
|
# only post to coveralls if not a fork PR
|
2017-01-03 19:16:10 -04:00
|
|
|
#- if [ -z ${CIRCLE_PR_USERNAME}]; then cpp-coveralls -l coverage.info; fi
|