[gvfs/wip/oholy/gnome-build-meta] test



commit e6d3d6dac4cc85aed1e4b7820d4f4fa36aba7d01
Author: Ondrej Holy <oholy redhat com>
Date:   Fri Jan 18 15:26:23 2019 +0100

    test

 .gitlab-ci.yml        | 19 ++++++++++++++++++-
 .gitlab-ci/Dockerfile |  2 +-
 2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 87962a1a..ed0db2f3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,29 @@
 variables:
     NAME: "fedora"
 
+stages:
+    - image
+    - build
+    - test
+
 fedora:
     stage: build
     image: "$CI_REGISTRY_IMAGE/$NAME"
+    artifacts:
+        paths:
+            - build/
+        expire_in: 1h
     script:
         - meson -Dinstalled_tests=true --prefix /usr --werror build
+        - ninja -C build
+
+test:
+    stage: test
+    image: "$CI_REGISTRY_IMAGE/$NAME"
+    script:
         - ninja -C build install
         - GIO_USE_VOLUME_MONITOR=unix gnome-desktop-testing-runner
+    allow_failure: true
 
 gnome-build-meta:
     stage: build
@@ -26,9 +42,10 @@ gnome-build-meta:
         - bst build --track-all sdk/gvfs.bst
         - bst workspace open --no-checkout sdk/gvfs.bst ..
         - bst --no-interactive build sdk/gvfs.bst
+    when: manual
 
 update-image:
-    stage: build
+    stage: image
     image: docker:latest
     services:
         - docker:dind
diff --git a/.gitlab-ci/Dockerfile b/.gitlab-ci/Dockerfile
index 23dc939a..a7c24688 100644
--- a/.gitlab-ci/Dockerfile
+++ b/.gitlab-ci/Dockerfile
@@ -1,6 +1,6 @@
 FROM fedora:rawhide
 
-RUN dnf install -y avahi-devel avahi-glib-devel dbus-glib-devel docbook-style-xsl fuse-devel gcc gcr-devel 
gettext-devel glib2-devel gnome-online-accounts-devel libarchive-devel libbluray-devel libcap-devel 
libcdio-paranoia-devel libexif-devel libgcrypt-devel libgdata-devel libgphoto2-devel libgudev-devel 
libimobiledevice-devel libmtp-devel libnfs-devel libplist-devel libsecret-devel libsmbclient-devel 
libsoup-devel libtalloc-devel libudisks2-devel libusb-devel libxslt-devel meson openssh-clients 
pkgconf-pkg-config polkit-devel systemd-devel gnome-desktop-testing dbus-daemon python3-twisted \
+RUN dnf install -y avahi-devel avahi-glib-devel dbus-glib-devel docbook-style-xsl fuse-devel gcc gcr-devel 
gettext-devel glib2-devel gnome-online-accounts-devel libarchive-devel libbluray-devel libcap-devel 
libcdio-paranoia-devel libexif-devel libgcrypt-devel libgdata-devel libgphoto2-devel libgudev-devel 
libimobiledevice-devel libmtp-devel libnfs-devel libplist-devel libsecret-devel libsmbclient-devel 
libsoup-devel libtalloc-devel libudisks2-devel libusb-devel libxslt-devel meson openssh-clients 
pkgconf-pkg-config polkit-devel systemd-devel gnome-desktop-testing dbus-daemon python3-twisted 
python3-gobject procps-ng bzip2 \
  && dnf clean all
 
 RUN dnf install -y --best elfutils-libelf-devel gamin-devel gcc gcc-c++ gdbm gettext git glibc-devel 
glibc-headers gtk-doc libattr-devel libffi-devel libmount-devel libselinux-devel ninja-build pcre-devel 
python3-devel systemtap-sdt-devel zlib-devel \


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