[atkmm/kjellahl/testci] CI: Check what happens without apt install



commit 4a3e1fd259e8e2d9df007d12ab5ad1fda7a87ad7
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Fri Sep 10 13:16:09 2021 +0200

    CI: Check what happens without apt install

 .gitlab-ci.yml | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 801e055..beade5d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,11 +26,7 @@ variables:
 .build_default:
   before_script:
     - export DEBIAN_FRONTEND=noninteractive
-    - if apt update; then
-    - if apt -y upgrade; then
-    - apt -y install $DEPENDENCIES
-    - fi
-    - fi
+    - apt update && apt -y upgrade
 
 # Clear the cache manually.
 clear_cache:
@@ -71,7 +67,6 @@ build_deps:
     - meson compile
     - cd ../..
     - fi
-  allow_failure: true
   cache:
     key: build-deps
     paths:
@@ -85,6 +80,7 @@ release_gcc_build:
   variables:
     DEPENDENCIES: $MESON_GCC_DEPS
   script:
+    - apt -y install $DEPENDENCIES
     - ninja -C libsigc/_build install
     - ninja -C glibmm/_build install
     - mkdir _build && cd _build


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