billiob pushed a commit to branch master.

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

commit a1eb47494a3c2166c833e25dae097d83576a3d93
Author: Boris Faure <[email protected]>
Date:   Sat Apr 25 17:12:50 2020 +0200

    ci: build and test in debug and release modes
---
 .circleci/config.yml | 47 +++++++++++++++++++++++++++++------------------
 1 file changed, 29 insertions(+), 18 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5689e80..5da817b 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -88,7 +88,7 @@ jobs:
             meson configure build
             cd build
             ninja -j4
-  build_full_gcc_efl_latest:
+  build_and_test_debug_gcc_efl_latest:
     docker:
       - image: borisfaure/terminology-ci:latest
     steps:
@@ -103,23 +103,10 @@ jobs:
             CFLAGS: -O0 -g
           command: |
             cd /terminology
-            meson -Dtests=true -Dfuzzing=true -Db_coverage=true . build
+            meson -Dtests=true -Dfuzzing=true -Db_coverage=true 
-Dbuildtype=debug . build
             meson configure build
             cd build
             ninja -j4
-      - save_cache:
-          key: build_full_gcc_efl_latest-{{ .Environment.CIRCLE_SHA1 }}
-          paths:
-            - /terminology
-  tests_gcc_efl_latest:
-    docker:
-      - image: borisfaure/terminology-ci:latest
-    steps:
-      - restore_cache:
-          key: build_full_gcc_efl_latest-{{ .Environment.CIRCLE_SHA1 }}
-      - run:
-          name: Install EFL
-          command: apk add /pkg/efl-latest.apk /pkg/efl-dev-latest.apk
       - run:
           name: Launch tests
           command: |
@@ -138,6 +125,30 @@ jobs:
             chmod +x .codecov
             sed -i.bak 's/execdir/exec/' .codecov
             ./.codecov -Z
+  build_and_test_release_gcc_efl_latest:
+    docker:
+      - image: borisfaure/terminology-ci:latest
+    steps:
+      - restore_cache:
+          key: checkout-{{ .Environment.CIRCLE_SHA1 }}
+      - run:
+          name: Install EFL
+          command: apk add /pkg/efl-latest.apk /pkg/efl-dev-latest.apk
+      - run:
+          name: Compile with GCC
+          environment:
+            CFLAGS: -O0 -g
+          command: |
+            cd /terminology
+            meson -Dtests=true -Dbuildtype=release . build
+            meson configure build
+            cd build
+            ninja -j4
+      - run:
+          name: Launch tests
+          command: |
+            cd /terminology
+            tests/run_tests.sh -v -t build/src/bin/tytest -r 
tests/tests.results -d tests/
   build_full_clang_efl_latest:
     docker:
       - image: borisfaure/terminology-ci:latest
@@ -200,12 +211,12 @@ workflows:
       - build_minimal_gcc_efl-1.23:
           requires:
             - checkout_code
-      - build_full_gcc_efl_latest:
+      - build_and_test_debug_gcc_efl_latest:
           requires:
             - checkout_code
-      - tests_gcc_efl_latest:
+      - build_and_test_release_gcc_efl_latest:
           requires:
-            - build_full_gcc_efl_latest
+            - checkout_code
       - build_full_clang_efl_latest:
           requires:
             - checkout_code

-- 


Reply via email to