[libhandy/wip/exalm/ci] ci: Remove global before_script and move api-visibility to default image



commit 2a8fb62df36cd5f2f3b527a74d11a2426c657a83
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri May 22 16:01:31 2020 +0500

    ci: Remove global before_script and move api-visibility to default image

 .gitlab-ci.yml | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 30790404..dde498af 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,11 +8,6 @@ stages:
   - test-package
   - deploy
 
-before_script:
-  - apt-get -y update
-  - apt-get -y install build-essential libgtk-3-doc libgdk-pixbuf2.0-doc lcov
-  - apt-get -y build-dep .
-
 .build: &build_steps
     echo "BUILD_OPTS=${BUILD_OPTS}" &&
     export LC_ALL=C.UTF-8 &&
@@ -20,7 +15,6 @@ before_script:
     ninja -C _build
 
 api-visibility:
-  image: debian:buster
   stage: build
   script:
     - lint/api-visibility.sh
@@ -28,6 +22,10 @@ api-visibility:
 build-debian-gcc:
   image: debian:buster
   stage: build
+  before_script:
+    - apt-get -y update
+    - apt-get -y install build-essential libgtk-3-doc libgdk-pixbuf2.0-doc lcov
+    - apt-get -y build-dep .
   variables:
     BUILD_OPTS: -Dgtk_doc=true -Db_coverage=true --werror
   script:
@@ -71,6 +69,10 @@ build-fedora-gcc:
 build-gtkdoc:
   image: debian:buster
   stage: test+docs
+  before_script:
+    - apt-get -y update
+    - apt-get -y install build-essential libgtk-3-doc libgdk-pixbuf2.0-doc lcov
+    - apt-get -y build-dep .
   dependencies:
     - build-debian-gcc
   script:
@@ -84,6 +86,10 @@ build-gtkdoc:
 unit-test:
   image: debian:buster
   stage: test+docs
+  before_script:
+    - apt-get -y update
+    - apt-get -y install build-essential libgtk-3-doc libgdk-pixbuf2.0-doc lcov
+    - apt-get -y build-dep .
   dependencies:
     - build-debian-gcc
   script:


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