[glib/wip/hadess/installed-tests] ci: Run installed-tests on Fedora



commit 4baba0fdb597a70dad965bfd35edaeb055fac217
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Nov 15 11:59:00 2019 +0100

    ci: Run installed-tests on Fedora
    
    Run installed-tests on a Fedora system.

 .gitlab-ci.yml | 33 ++++++++++++++++++++++++++++++---
 1 file changed, 30 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3ec1e53e8..c749448b7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,9 +36,8 @@ fedora-x86_64:
     - lcov --config-file .gitlab-ci/lcovrc --directory _build --capture --initial --output-file 
"_coverage/${CI_JOB_NAME}-baseline.lcov"
     - .gitlab-ci/run-tests.sh
     - lcov --config-file .gitlab-ci/lcovrc --directory _build --capture --output-file 
"_coverage/${CI_JOB_NAME}.lcov"
-    # FIXME: We should run all installed tests, but do only this one for now
-    # because it cannot run uninstalled. Reconfigure with dtrace disabled
-    # because it breaks static link.
+    # Only this installed_test for now because it cannot run uninstalled. Reconfigure
+    # with dtrace disabled because it breaks static link.
     - meson configure -Ddtrace=false _build
     - ninja -C _build install
     - GLIB_TEST_COMPILATION=1 $HOME/glib-installed/libexec/installed-tests/glib/static-link.py 
$HOME/glib-installed/lib/pkgconfig
@@ -83,6 +82,34 @@ debian-stable-x86_64:
       - "_build/meson-logs"
       - "_build/${CI_JOB_NAME}-report.xml"
 
+installed-tests:
+  image: registry.gitlab.gnome.org/gnome/glib/fedora:v4
+  stage: build
+  except:
+    - tags
+  before_script:
+    - dnf install -y gnome-desktop-testing
+  script:
+    - meson ${MESON_COMMON_OPTIONS}
+            --werror
+            --prefix=/usr --libdir=/usr/lib64
+            -Dfam=true
+            -Dinstalled_tests=true
+            _build
+    - ninja -C _build
+    - ninja -C _build install
+    - gnome-desktop-testing-runner glib
+  artifacts:
+    reports:
+      junit: "_build/${CI_JOB_NAME}-report.xml"
+    name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
+    when: always
+    paths:
+      - "_build/config.h"
+      - "_build/glib/glibconfig.h"
+      - "_build/meson-logs"
+      - "_build/${CI_JOB_NAME}-report.xml"
+
 G_DISABLE_ASSERT:
   image: registry.gitlab.gnome.org/gnome/glib/fedora:v4
   stage: build


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