[gnome-flashback] ci: update configuration



commit be34d03bca42f8e80f444eadb8c2b47d0262f59b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Apr 1 02:16:10 2020 +0300

    ci: update configuration

 .gitlab-ci.yml | 122 ++++++++++++++++++++-------------------------------------
 1 file changed, 43 insertions(+), 79 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8a881ab..adb6980 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,46 @@ variables:
   DEBIAN_FRONTEND: noninteractive
   GIT_SUBMODULE_STRATEGY: normal
 
-validate-menu:
+.install-ubuntu-dependencies: &install-ubuntu-dependencies
+  apt-get install -q -y --no-install-recommends
+                  autoconf-archive
+                  automake
+                  autopoint
+                  build-essential
+                  gettext
+                  git
+                  gsettings-desktop-schemas-dev
+                  libasound2-dev
+                  libcanberra-gtk3-dev
+                  libdbus-glib-1-dev
+                  libgdk-pixbuf2.0-dev
+                  libgdm-dev
+                  libglib2.0-dev
+                  libgnome-bluetooth-dev
+                  libgnome-desktop-3-dev
+                  libgnome-panel-dev
+                  libgtk-3-dev
+                  libibus-1.0-dev
+                  libpam0g-dev
+                  libpango1.0-dev
+                  libpolkit-agent-1-dev
+                  libpolkit-gobject-1-dev
+                  libpulse-dev
+                  libsystemd-dev
+                  libtool
+                  libupower-glib-dev
+                  libx11-dev
+                  libx11-xcb-dev
+                  libxcb-randr0-dev
+                  libxext-dev
+                  libxfixes-dev
+                  libxi-dev
+                  libxkbfile-dev
+                  libxrandr-dev
+                  libxxf86vm-dev
+                  xkb-data
+
+menu:
   image: ubuntu:devel
   stage: validate
   except:
@@ -20,50 +59,14 @@ validate-menu:
       --path https://standards.freedesktop.org/menu-spec/menu-latest.dtd
       data/menus/gnome-flashback-applications.menu
 
-build-ubuntu:
+ubuntu:
   image: ubuntu:devel
   stage: build
   except:
     - tags
   before_script:
     - apt-get update
-    - apt-get install -q -y --no-install-recommends
-                      autoconf-archive
-                      automake
-                      autopoint
-                      build-essential
-                      gettext
-                      git
-                      gsettings-desktop-schemas-dev
-                      libasound2-dev
-                      libcanberra-gtk3-dev
-                      libdbus-glib-1-dev
-                      libgdk-pixbuf2.0-dev
-                      libgdm-dev
-                      libglib2.0-dev
-                      libgnome-bluetooth-dev
-                      libgnome-desktop-3-dev
-                      libgnome-panel-dev
-                      libgtk-3-dev
-                      libibus-1.0-dev
-                      libpam0g-dev
-                      libpango1.0-dev
-                      libpolkit-agent-1-dev
-                      libpolkit-gobject-1-dev
-                      libpulse-dev
-                      libsystemd-dev
-                      libtool
-                      libupower-glib-dev
-                      libx11-dev
-                      libx11-xcb-dev
-                      libxcb-randr0-dev
-                      libxext-dev
-                      libxfixes-dev
-                      libxi-dev
-                      libxkbfile-dev
-                      libxrandr-dev
-                      libxxf86vm-dev
-                      xkb-data
+    - *install-ubuntu-dependencies
   script:
     - ./autogen.sh
     - make
@@ -75,46 +78,7 @@ coverity:
   when: manual
   before_script:
     - apt-get update
-    - apt-get install -q -y --no-install-recommends
-                      autoconf-archive
-                      automake
-                      autopoint
-                      build-essential
-                      ca-certificates
-                      clang
-                      curl
-                      gettext
-                      git
-                      gsettings-desktop-schemas-dev
-                      libasound2-dev
-                      libcanberra-gtk3-dev
-                      libdbus-glib-1-dev
-                      libgdk-pixbuf2.0-dev
-                      libgdm-dev
-                      libglib2.0-dev
-                      libgnome-bluetooth-dev
-                      libgnome-desktop-3-dev
-                      libgnome-panel-dev
-                      libgtk-3-dev
-                      libibus-1.0-dev
-                      libpam0g-dev
-                      libpango1.0-dev
-                      libpolkit-agent-1-dev
-                      libpolkit-gobject-1-dev
-                      libpulse-dev
-                      libsystemd-dev
-                      libtool
-                      libupower-glib-dev
-                      libx11-dev
-                      libx11-xcb-dev
-                      libxcb-randr0-dev
-                      libxext-dev
-                      libxfixes-dev
-                      libxi-dev
-                      libxkbfile-dev
-                      libxrandr-dev
-                      libxxf86vm-dev
-                      xkb-data
+    - *install-ubuntu-dependencies
   script:
     - curl https://scan.coverity.com/download/linux64
       --data "token=$COVERITY_TOKEN&project=gnome-flashback"


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