[tracker/sam/ci-ubuntu] Run tests using Ubuntu base in addition to Fedora



commit c8cd45b813d32dff527d2f69818b26a9b9b7bc88
Author: Sam Thursfield <sam afuera me uk>
Date:   Fri Dec 13 23:21:09 2019 +0100

    Run tests using Ubuntu base in addition to Fedora
    
    Tracker's first CI image was Fedora because that's what I use locally,
    but it's important that we test across a broad range of distributions.
    Ubuntu is the logical next step now that they enable Tracker by default.

 .gitlab-ci.yml | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 652b8ec1e..3ed080c66 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,9 +13,9 @@ variables:
 stages:
   - test
 
-test-fedora-latest:
+
+.test_template: &test
   stage: test
-  image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest
 
   script:
     - su tracker -c 'mkdir build'
@@ -34,11 +34,15 @@ test-fedora-latest:
 
   after_script:
     - |
+      echo "Distribution: "
+      echo
+      egrep '^NAME=|^VERSION=' /etc/os-release
+      echo
       echo "Test suite settings:"
       echo
-      echo "  TRACKER_VERBOSITY: ${TRACKER_VERBOSITY}"
-      echo "  TRACKER_TESTS_VERBOSE: ${TRACKER_TESTS_VERBOSE}"
-      echo "  MESON_TEST_EXTRA_ARGS: ${MESON_TEST_EXTRA_ARGS}"
+      echo "TRACKER_VERBOSITY: ${TRACKER_VERBOSITY}"
+      echo "TRACKER_TESTS_VERBOSE: ${TRACKER_TESTS_VERBOSE}"
+      echo "MESON_TEST_EXTRA_ARGS: ${MESON_TEST_EXTRA_ARGS}"
       echo
       echo "These values can be set at https://gitlab.gnome.org/GNOME/tracker/pipelines/new";
 
@@ -46,3 +50,12 @@ test-fedora-latest:
     when: always
     paths:
     - build/meson-logs/testlog.txt
+
+
+test-fedora-latest:
+  image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest
+  <<: *test
+
+test-ubuntu-rolling:
+  image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/ubuntu:rolling
+  <<: *test


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