From b6ff406b7f6305bc7e31d25059808eb7be7cee6a Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 1 Jan 2017 16:54:50 -0500 Subject: [PATCH] circleci upload coverage to coveralls --- circle.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/circle.yml b/circle.yml index 527bf436d0..2be4f37ba3 100644 --- a/circle.yml +++ b/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: