[atkmm/kjellahl/testci] CI: Adding sudo



commit 79a6dc241663723034e6cd23e87bfb7313e1dd9f
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Fri Sep 10 15:29:36 2021 +0200

    CI: Adding sudo

 .gitlab-ci.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b2dd0e1..5f943a1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,6 +27,10 @@ variables:
   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
 
 # Clear the cache manually.
 clear_cache:
@@ -80,12 +84,8 @@ release_gcc_build:
   variables:
     DEPENDENCIES: $MESON_GCC_DEPS
   script:
-    - if apt -y install $DEPENDENCIES
-    - then echo apt install succeeded
-    - else echo apt install failed $?
-    - fi
-    - ninja -C libsigc/_build install
-    - ninja -C glibmm/_build install
+    - sudo ninja -C libsigc/_build install
+    - sudo 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]