aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-22 23:42:26 +0100
committerBoris Faure <billiob@gmail.com>2018-12-23 10:48:12 +0100
commitc37c3313a27bc8bdba45cfd61b04d0e3e20d5d0f (patch)
tree0ec020060db797ef4c0cbe339ec198bf0b8ba2d8 /.circleci
parentci: add circleci config (diff)
downloadterminology-c37c3313a27bc8bdba45cfd61b04d0e3e20d5d0f.tar.gz
ci: compile with gcc and clang
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml41
1 files changed, 39 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 1b56d0e..9a758f7 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,8 +1,9 @@
version: 2
+
jobs:
- build:
+ checkout_code:
docker:
- - image: borisfaure/terminology-ci:0.1
+ - image: borisfaure/terminology-ci:latest
steps:
- run: |
cd /terminology
@@ -15,6 +16,31 @@ jobs:
else
git reset --hard $CIRCLE_SHA1
fi
+ - save_cache:
+ key: ty-{{ .Environment.CIRCLE_SHA1 }}
+ paths:
+ - /terminology
+
+ build_gcc:
+ docker:
+ - image: borisfaure/terminology-ci:latest
+ steps:
+ - restore_cache:
+ key: ty-{{ .Environment.CIRCLE_SHA1 }}
+ - run: |
+ cd /terminology
+ meson . build
+ meson configure build
+ cd build
+ ninja
+ build_clang:
+ docker:
+ - image: borisfaure/terminology-ci:latest
+ environment:
+ - CC: clang
+ steps:
+ - restore_cache:
+ key: ty-{{ .Environment.CIRCLE_SHA1 }}
- run: |
cd /terminology
meson . build
@@ -22,3 +48,14 @@ jobs:
cd build
ninja
path: /terminology
+workflows:
+ version: 2
+ build-and-deploy:
+ jobs:
+ - checkout_code
+ - build_gcc:
+ requires:
+ - checkout_code
+ - build_clang:
+ requires:
+ - checkout_code