[nautilus/alatiera/poking-ci: 2/2] CI: Improve formatting of yaml



commit a0cfe3178dda88622c5bc4f406036f3af07aad77
Author: Jordan Petridis <jpetridis gnome org>
Date:   Tue Oct 9 14:04:03 2018 +0300

    CI: Improve formatting of yaml

 .gitlab-ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 40 insertions(+), 15 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2fc16c2f7..51c46d48a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -85,7 +85,7 @@ stop_review:
         - master@GNOME/nautilus
         - tags
 
-fedora:rawhide:
+fedora rawhide:
     image: fedora:rawhide
     stage: cross_environment
     before_script:
@@ -116,34 +116,59 @@ fedora:rawhide:
         - web
         - tags
 
-ubuntu:devel:
+ubuntu devel:
     image: ubuntu:devel
     stage: cross_environment
+    variables:
+        DEPENDANCIES: |
+            git \
+            gcc \
+            meson \
+            gettext \
+            itstool \
+            gobject-introspection \
+            desktop-file-utils \
+            libxml2-dev \
+            libgtk-3-dev \
+            libgexiv2-dev \
+            libseccomp-dev \
+            libgnome-autoar-0-dev \
+            libgirepository1.0-dev \
+            libtracker-sparql-2.0-dev \
+            libtracker-control-2.0-dev \
+            gsettings-desktop-schemas-dev \
     before_script:
         # Ubuntu requires running update to fetch metadata and find packges
         - apt-get update
-        - apt-get install -y gcc meson gettext itstool git libgtk-3-dev
-                             libgnome-autoar-0-dev
-                             gobject-introspection libxml2-dev
-                             libtracker-control-2.0-dev desktop-file-utils libgexiv2-dev
-                             libtracker-sparql-2.0-dev
-                             libgirepository1.0-dev gsettings-desktop-schemas-dev
-                             libseccomp-dev
+        - apt-get install -y $DEPENDANCIES
     <<: *distro_test
     only:
         - schedules
         - web
         - tags
 
-opensuse:tumbleweed:
+opensuse tumbleweed:
     image: opensuse:tumbleweed
     stage: cross_environment
+    variables:
+        DEPENDANCIES: |
+            git \
+            gcc \
+            meson \
+            itstool \
+            gtk3-devel \
+            gettext-tools \
+            libxml2-devel \
+            tracker-devel \
+            libgexiv2-devel \
+            gettext-runtime \
+            gnome-autoar-devel \
+            desktop-file-utils \
+            gobject-introspection-devel \
+            gsettings-desktop-schemas-devel \
+            libseccomp-devel
     before_script:
-        - zypper install -y gcc meson gettext-runtime gettext-tools itstool git
-                            gtk3-devel gnome-autoar-devel
-                            gobject-introspection-devel libxml2-devel tracker-devel
-                            desktop-file-utils libgexiv2-devel gsettings-desktop-schemas-devel
-                            libseccomp-devel
+        - zypper install -y $DEPENDANCIES
     <<: *distro_test
     only:
         - schedules


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