Skip to content

Commit ba8745b

Browse files
committed
ci: Add a circleci linux and macos builder.
1 parent a459c7c commit ba8745b

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed

.circleci/config.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
version: 2
3+
jobs:
4+
build-focal:
5+
docker:
6+
- image: circleci/buildpack-deps:focal-scm
7+
steps:
8+
- checkout
9+
- run: sudo apt install build-essential cmake libcppunit-dev doxygen graphviz
10+
- run: git clone https://github.com/google/googletest
11+
- run: mkdir googletest/build; cd googletest/build; cmake ..
12+
- run: cd googletest/build; make; sudo make install
13+
- run: mkdir build
14+
- run: cd build && cmake -DDISABLE_CATKIN=ON ..
15+
- run: cd build && make && make test
16+
build-macos:
17+
macos:
18+
xcode: "10.0.0"
19+
steps:
20+
- checkout
21+
- restore-cache:
22+
keys:
23+
- 2020-09-29-v1
24+
- run: brew update
25+
- run: brew upgrade git
26+
- run: >
27+
for p in llvm cmake cppunit doxygen; do
28+
brew list --version $p || brew install $p;
29+
brew link $p;
30+
done
31+
- run: >
32+
brew list --version graphviz
33+
|| brew install graphviz || brew install graphviz || :;
34+
brew link graphviz
35+
- run: git clone https://github.com/google/googletest
36+
- run: mkdir googletest/build; cd googletest/build; cmake ..
37+
- run: cd googletest/build; make; sudo make install
38+
- save-cache:
39+
key: 2020-09-29-v1
40+
paths:
41+
- /usr/local/Homebrew
42+
- /usr/local/Cellar
43+
- run: mkdir build
44+
- run: >
45+
cd build && cmake
46+
-DDISABLE_CATKIN=ON
47+
-DENABLE_CATKIN_TESTING=ON
48+
..
49+
- run: cd build && make
50+
- run: cd build && ARGS="--verbose" make test
51+
52+
53+
workflows:
54+
version: 2
55+
build_all:
56+
jobs:
57+
- build-focal:
58+
filters:
59+
branches:
60+
only:
61+
- master
62+
- build
63+
- build-macos:
64+
filters:
65+
branches:
66+
only:
67+
- master
68+
- build

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.*
21
.DS_Store
32
*.coverage
43
*.egg-info

0 commit comments

Comments
 (0)