[tracker/wip/carlosg/test: 3/4] ci: Use default Fedora Rawhide docker image



commit c652e3ac4aaebb9c25d61555216c2a9c40e8cb46
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 6 11:02:44 2018 +0100

    ci: Use default Fedora Rawhide docker image
    
    While tracker meson build breaks with 0.46.x (x=1 at least), our
    custom "latest" image is stuck in the past and ships that meson.
    Use the default images so it's actually self-updating for free
    and CI is fixed because it ships with meson >= 0.48.0 which is
    good for us.

 .gitlab-ci.yml | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 75470763b..2dbe76c91 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,18 +1,19 @@
 stages:
   - test
 
-test-fedora-latest:
-  stage: test
-  image: registry.gitlab.gnome.org/sthursfield/tracker-oci-images/amd64/fedora:latest
-
-  script:
-    - su tracker -c 'mkdir build'
-    - su tracker -c 'cd build; meson ..'
-    - su tracker -c 'cd build; ninja'
-    - |
-      # Remove the many "CI_" variables from the environment. Meson dumps the
-      # whole environment for every failed test, and that gives a whole
-      # screenful of junk each time unless we strip these.
-      unset $(env|grep -o '^CI_[^=]*')
-
-      su tracker -c 'cd build; LANG=en_US.UTF8 dbus-launch meson test --print-errorlogs'
+fedora:rawhide:
+    image: fedora:rawhide
+    stage: test
+    before_script:
+        - dnf install -y 'dnf-command(builddep)' redhat-rpm-config meson ninja-build dbus-devel python2 
dbus-x11 pygobject3-devel tracker --nogpgcheck
+        - dnf builddep -y tracker --nogpgcheck
+    script:
+        - meson _build .
+        - cd _build
+        - |
+          # Remove the many "CI_" variables from the environment. Meson dumps the
+          # whole environment for every failed test, and that gives a whole
+          # screenful of junk each time unless we strip these.
+          unset $(env|grep -o '^CI_[^=]*')
+        - export LANG=en_US.UTF8
+        - dbus-launch meson test --print-errorlogs


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