[librsvg: 1/6] gitlab-ci: Build test case for fedora.



commit c1b98d3ec232cdb220bb1312ebe246400362747d
Author: Jordan Petridis <jordanpetridis protonmail com>
Date:   Mon Feb 19 21:54:51 2018 +0000

    gitlab-ci: Build test case for fedora.
    
    Switch to fedora for CI tesing since it takes half time.
    Restrict opensuse test to run only on the following builds:
    * master branch
    * tags
    * scheduled
    * Requested

 .gitlab-ci.yml | 57 +++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 41 insertions(+), 16 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e7e53b39..ad7f116d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,26 +1,12 @@
 # -*- indent-tabs-mode: nil -*-
 
-image: opensuse:tumbleweed
-
 stages:
   - test
 
-before_script:
-  - zypper install -y gcc rust rust-std cargo make
-                   automake autoconf libtool gettext itstool
-                   gtk-doc
-                   git
-                   gobject-introspection-devel
-                   libxml2-devel
-                   libcroco-devel
-                   cairo-devel
-                   pango-devel
-                   gdk-pixbuf-devel
-                   gtk3-devel
-
-test:
+.test_template: &distro_test
   stage: test
   script:
+    - rustc --version && cargo --version
     - ./autogen.sh --enable-debug
     - make check
   after_script:
@@ -32,3 +18,42 @@ test:
     paths:
       - tests/*.log
       - png_artifacts
+
+
+fedora:test:
+  image: fedora:latest
+  before_script:
+    - dnf install -y gcc rust rust-std-static cargo make
+                     automake autoconf libtool gettext itstool
+                     gtk-doc
+                     git redhat-rpm-config
+                     gobject-introspection-devel
+                     libxml2-devel
+                     libcroco-devel
+                     cairo-devel
+                     pango-devel
+                     gdk-pixbuf2-devel
+                     gtk3-devel
+  <<: *distro_test
+
+opensuse:test:
+  image: opensuse:tumbleweed
+  before_script:
+    - zypper install -y gcc rust rust-std cargo make
+                     automake autoconf libtool gettext itstool
+                     gtk-doc
+                     git
+                     gobject-introspection-devel
+                     libxml2-devel
+                     libcroco-devel
+                     cairo-devel
+                     pango-devel
+                     gdk-pixbuf-devel
+                     gtk3-devel
+  <<: *distro_test
+  only:
+    refs:
+      - master
+      - schedules
+      - tags
+      - web


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