[gnome-shell-extensions/wip/fmuellner/lint-ci: 16/17] ci: Don't use global image/before_script



commit b9623fa0af9775672b35997cfc3f9789c2d2f9fd
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Jan 28 04:07:51 2019 +0100

    ci: Don't use global image/before_script
    
    We are about to add another job that will use different parameters,
    so it makes sense to set them under the job they belong to rather
    than globally.

 .gitlab-ci.yml | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 74995b2..1a8388a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,11 @@
-image: fedora:latest
-
 stages:
  - build
 
-before_script:
-  - dnf install -y meson gettext mozjs60-devel
-
 build-shell-extensions:
+  image: fedora:latest
   stage: build
+  before_script:
+    - dnf install -y meson gettext mozjs60-devel
   script:
     - meson _build .
     - ninja -C _build test install


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