[atkmm/kjellahl/testci] CI: Add set +e



commit 70cc00428e6e004806ec3609a0ef0d75c8a98704
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Sat Sep 11 10:52:18 2021 +0200

    CI: Add set +e

 .gitlab-ci.yml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5f943a1..246aa6f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,11 +26,12 @@ variables:
 .build_default:
   before_script:
     - export DEBIAN_FRONTEND=noninteractive
-    - apt update && apt -y upgrade
-    - if sudo apt -y install $DEPENDENCIES
-    - then echo apt install succeeded
-    - else echo apt install failed $?
-    - fi
+    - apt update
+    - apt -y upgrade
+    - set -o
+    - set +e
+    - apt -y install $DEPENDENCIES
+    - set -e
 
 # Clear the cache manually.
 clear_cache:
@@ -84,8 +85,8 @@ release_gcc_build:
   variables:
     DEPENDENCIES: $MESON_GCC_DEPS
   script:
-    - sudo ninja -C libsigc/_build install
-    - sudo ninja -C glibmm/_build install
+    - ninja -C libsigc/_build install
+    - ninja -C glibmm/_build install
     - mkdir _build && cd _build
     # -Ddebug=false + -Doptimization=3 correspond to -Dbuildtype=release
     - meson --prefix=/usr --libdir=lib -Ddebug=false -Doptimization=3 -Dwarnings=fatal


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