Skip to content

Commit 022046d

Browse files
committed
gcovr 4.0
1 parent 3ab8f5f commit 022046d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

circle.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
machine:
2+
services:
3+
docker
4+
environment:
5+
CPPUTEST_HOME: $HOME/$CIRCLE_PROJECT_REPONAME/cpputest-3.8
6+
7+
dependencies:
8+
pre:
9+
- curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin
10+
- testspace config url samples.testspace.com
11+
- testspace -v
12+
- pip install gcovr
13+
- wget https://github.com/cpputest/cpputest/releases/download/v3.8/cpputest-3.8.zip
14+
- unzip cpputest-3.8.zip
15+
override:
16+
- cd $CPPUTEST_HOME/cpputest_build && autoreconf .. -i && ../configure && make && cp -R ./lib ../
17+
18+
test:
19+
override:
20+
- make -C $CPPUTEST_HOME/examples CPPUTEST_USE_GCOV=Y clean all_no_tests |& tee build.log ; test ${PIPESTATUS[0]} -eq 0
21+
- $CPPUTEST_HOME/examples/CppUTestExamples_tests -o junit -v
22+
- gcovr --root ./ --filter ".*/ApplicationLib/.*" -x -o coverage.xml
23+
24+
post:
25+
- testspace build.log{lint} [Tests]cpputest_*.xml coverage.xml

0 commit comments

Comments
 (0)