1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00

ci: Add a circleci linux and macos builder.

This commit is contained in:
Alec Leamas 2020-09-27 12:43:01 +02:00
parent a459c7cdee
commit ba8745b9c1
2 changed files with 68 additions and 1 deletions

68
.circleci/config.yml Normal file
View File

@ -0,0 +1,68 @@
---
version: 2
jobs:
build-focal:
docker:
- image: circleci/buildpack-deps:focal-scm
steps:
- checkout
- run: sudo apt install build-essential cmake libcppunit-dev doxygen graphviz
- run: git clone https://github.com/google/googletest
- run: mkdir googletest/build; cd googletest/build; cmake ..
- run: cd googletest/build; make; sudo make install
- run: mkdir build
- run: cd build && cmake -DDISABLE_CATKIN=ON ..
- run: cd build && make && make test
build-macos:
macos:
xcode: "10.0.0"
steps:
- checkout
- restore-cache:
keys:
- 2020-09-29-v1
- run: brew update
- run: brew upgrade git
- run: >
for p in llvm cmake cppunit doxygen; do
brew list --version $p || brew install $p;
brew link $p;
done
- run: >
brew list --version graphviz
|| brew install graphviz || brew install graphviz || :;
brew link graphviz
- run: git clone https://github.com/google/googletest
- run: mkdir googletest/build; cd googletest/build; cmake ..
- run: cd googletest/build; make; sudo make install
- save-cache:
key: 2020-09-29-v1
paths:
- /usr/local/Homebrew
- /usr/local/Cellar
- run: mkdir build
- run: >
cd build && cmake
-DDISABLE_CATKIN=ON
-DENABLE_CATKIN_TESTING=ON
..
- run: cd build && make
- run: cd build && ARGS="--verbose" make test
workflows:
version: 2
build_all:
jobs:
- build-focal:
filters:
branches:
only:
- master
- build
- build-macos:
filters:
branches:
only:
- master
- build

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
.*
.DS_Store
*.coverage
*.egg-info