[gexiv2/wip/exiv2-master-ci] wip: Try to add a job to build against exiv2 master



commit 2f8f0802c310cc63a7a1dd0a8bc83dcf61ad4fde
Author: Jens Georg <mail jensge org>
Date:   Tue Nov 20 13:56:52 2018 +0100

    wip: Try to add a job to build against exiv2 master

 .gitlab-ci.yml | 36 +++++++++++++++++++++++++++++-------
 1 file changed, 29 insertions(+), 7 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c31f714..df658b3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,18 +1,37 @@
-image: fedora:latest
 
-before_script:
-  - dnf update -y --nogpgcheck
-  - dnf install -y --nogpgcheck meson gcc-c++ exiv2-devel gobject-introspection-devel
-                                ninja-build python2-devel python2-gobject-base vala
-                                python3-devel python3-gobject-base gtk-doc
-  - export LANG=C.UTF-8
+.fedora:
+  image: fedora:latest
+
+  before_script:
+    - dnf update -y --nogpgcheck
+    - dnf install -y --nogpgcheck meson gcc-c++ exiv2-devel gobject-introspection-devel
+                                  ninja-build python2-devel python2-gobject-base vala
+                                  python3-devel python3-gobject-base gtk-doc
+    - export LANG=C.UTF-8
 
 stages:
   - build
   - test
   - deploy
 
+exiv2-master:
+  stage: build
+  script:
+    - flatpak-builder build-dir build-aux/org.gnome.GExiv2.json --stop-at=gexiv2
+    - flatpak build build-dir meson _build
+    - flatpak build build-dir ninja -C _build
+  artifacts:
+    when: on_failure
+    name: "gexiv2-_${CI_COMMIT_REF_NAME}"
+    paths:
+      - "${CI_PROJECT_DIR}/_build/meson-logs"
+  cache:
+    paths:
+      - .flatpak-builder/downloads
+      - .flatpak-builder/git
+
 build-job:
+  extends: .fedora
   stage: build
   script:
     - meson --prefix /usr --libdir /usr/lib64 --buildtype debug --werror _build .
@@ -26,6 +45,7 @@ build-job:
       - "${CI_PROJECT_DIR}/_build/meson-logs"
 
 test:
+  extends: .fedora
   stage: test
   script:
     - meson _build .
@@ -35,6 +55,7 @@ test:
 # https://github.com/mesonbuild/meson/issues/3580
 
 dist-job:
+  extends: .fedora
   stage: build
   only:
     - tags
@@ -47,6 +68,7 @@ dist-job:
 
 pages:
   stage: deploy
+  extends: .fedora
   only:
     - master
   script:


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