billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=c37c3313a27bc8bdba45cfd61b04d0e3e20d5d0f

commit c37c3313a27bc8bdba45cfd61b04d0e3e20d5d0f
Author: Boris Faure <[email protected]>
Date:   Sat Dec 22 23:42:26 2018 +0100

    ci: compile with gcc and clang
---
 .circleci/config.yml | 41 +++++++++++++++++++++++++++++++++++++++--
 1 file 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

-- 


Reply via email to