Skip to content

Commit 02e8c88

Browse files
committed
Added CircleCI
1 parent f40e05d commit 02e8c88

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.circleci/config.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
version: 2
2+
jobs:
3+
gtest:
4+
working_directory: ~/root
5+
docker:
6+
- image: gcc:latest
7+
steps:
8+
- run:
9+
name: Downloading dependencies
10+
command: |
11+
apt-get update
12+
apt-get install -y cmake
13+
apt-get install -y libgtest-dev
14+
- run:
15+
name: Installing dependencies
16+
working_directory: /usr/src/gtest/
17+
command: |
18+
cmake CMakeLists.txt
19+
make
20+
cp /usr/src/gtest/*.a /usr/lib
21+
- checkout
22+
- run:
23+
name: Building tests
24+
command: make gtests
25+
- run:
26+
name: Running tests
27+
command: ./GTests --gtest_filter=*
28+
samples:
29+
working_directory: ~/root
30+
docker:
31+
- image: gcc:latest
32+
steps:
33+
- checkout
34+
- run:
35+
name: Building sample
36+
command: make sample
37+
- run:
38+
name: Running sample
39+
command: ./Sample
40+
workflows:
41+
version: 2
42+
build_and_test:
43+
jobs:
44+
- gtest:
45+
filters:
46+
branches:
47+
only:
48+
- master
49+
- develop
50+
- tests

0 commit comments

Comments
 (0)