Skip to content

Commit 52d4d79

Browse files
committed
add circleci 2 config and remove the old config
1 parent 6ef146f commit 52d4d79

File tree

3 files changed

+24
-26
lines changed

3 files changed

+24
-26
lines changed

.circleci/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 2.0
2+
3+
jobs:
4+
build:
5+
docker:
6+
- image: circleci/python:2.7-stretch-browsers
7+
environment:
8+
CPPUTEST_HOME: $HOME/$CIRCLE_PROJECT_REPONAME/cpputest-3.8
9+
steps:
10+
- checkout
11+
- run: "curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin"
12+
- run: "testspace config url samples.testspace.com"
13+
- run: "sudo pip install gcovr"
14+
- run: "wget https://github.com/cpputest/cpputest/releases/download/v3.8/cpputest-3.8.zip"
15+
- run: "unzip cpputest-3.8.zip"
16+
- run: cd cpputest-3.8/cpputest_build && autoreconf .. -i && ../configure && make && cp -R ./lib ../
17+
- run: make -C cpputest-3.8/examples CPPUTEST_USE_GCOV=Y clean all_no_tests |& tee build.log ; test ${PIPESTATUS[0]} -eq 0
18+
- run: cpputest-3.8/examples/CppUTestExamples_tests -o junit -v
19+
- run: gcovr --root ./ --filter ".*/ApplicationLib/.*" -x -o coverage.xml
20+
- run:
21+
name: Send reports to testspace
22+
command: "testspace build.log{lint} [Tests]cpputest_*.xml coverage.xml"
23+
when: always

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
!.travis.yml
1111
!shippable.yml
12-
!circle.yml
12+
!.circleci/config.yml
1313
!.c9build.sh
1414
!.testspace.txt
1515

circle.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)