[gnome-commander/ci_next_test] Evaluate return value of unit tests




commit 7955d1f76c18ee0ef978796a2fdcac6468641eb6
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Jan 30 19:59:56 2022 +0100

    Evaluate return value of unit tests

 .gitlab-ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ed51dc89..a4d390f8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,5 +20,6 @@ build-job:       # This job runs in the build stage, which runs first.
     - ./autogen.sh
     - make
     - echo "Compile complete. Starting Unit test phase..."
-    - make check || echo "Unit tests fail" && cat tests/test-suite.log && exit 1
-    - echo "Unit tests finished."
+    - make check; exit_code=$?
+    - if [ "$exit_code" != "0" ]; then echo "Unit tests failed."; cat tests/test-suite.log; exit 1; fi;
+    - echo "Unit tests passed."


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]