[gnome-commander/ci_next_test] Evaluate return value of unit tests
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ci_next_test] Evaluate return value of unit tests
- Date: Sun, 30 Jan 2022 19:00:16 +0000 (UTC)
commit 83e614501aee054e6e51eb18d4e1c5922d9460bc
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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ed51dc89..624827ff 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,5 +20,9 @@ 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
+ - >
+ make check
+ if [ $? -gt 0 ]; then
+ echo "Unit tests fail" && cat tests/test-suite.log && exit 1
+ fi
- echo "Unit tests finished."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]