summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano1618@gmail.com>2018-03-16 14:00:47 +0000
committerCarlos Soriano <csoriano1618@gmail.com>2018-03-16 14:00:47 +0000
commit0d607e29086ed454b6529f092e1d371b04280075 (patch)
tree95f33ebbc2a06c9eafeb617a40503a14158f3dc9 /.gitlab-ci.yml
parent4c9289ee66e36ab0eb37a014659b68e044d01e3b (diff)
downloadnautilus-0d607e29086ed454b6529f092e1d371b04280075.tar.gz
CI: Add Flatpak build
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml87
1 files changed, 49 insertions, 38 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7601fbdf3..07ce4f148 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,38 +1,49 @@
-image: fedora:28
-
-stages:
- - test
-
-before_script:
- - dnf install -y gcc meson gettext itstool redhat-rpm-config git
- gtk3-devel gnome-autoar-devel gnome-desktop3-devel
- gobject-introspection-devel libselinux-devel
- libxml2-devel tracker-devel desktop-file-utils
- libgexiv2-devel gcovr
-# Waiting for gcovr 3.5 to be released.
- - pip install git+https://github.com/gcovr/gcovr.git
-
-# Coverage data contains paths relative to the build directory,
-# so changing to it makes writing filter expressions easier.
-#
-# _build/src/ contains generated sources, so that is filtered out as well.
-test:
- stage: test
- script:
- - meson _build . -Db_coverage=true -Ddisplay-tests=false
- - cd _build
- - ninja test
- - gcovr --root=.
- --exclude=src/
- --exclude=../data/
- --exclude=../eel/check-program.c
- --exclude=../eel/eel-debug.c
- --exclude=../eel/eel-lib-self-check-functions.c
- --exclude=../eel/eel-self-checks.c
- --exclude=../src/animation/
- --exclude=../src/gtk/
- --exclude=../src/nautilus-lib-self-check-functions.c
- --exclude=../src/nautilus-self-check-functions.c
- --exclude=../subprojects/libgd/
- --exclude=../test/
- coverage: '/^TOTAL.*\s+(\d+\%)$/'
+build:fedora:
+ image: fedora:28
+
+ stages:
+ - test
+
+ before_script:
+ - dnf install -y gcc meson gettext itstool redhat-rpm-config git
+ gtk3-devel gnome-autoar-devel gnome-desktop3-devel
+ gobject-introspection-devel libselinux-devel
+ libxml2-devel tracker-devel desktop-file-utils
+ libgexiv2-devel gcovr
+ # Waiting for gcovr 3.5 to be released.
+ - pip install git+https://github.com/gcovr/gcovr.git
+
+ # Coverage data contains paths relative to the build directory,
+ # so changing to it makes writing filter expressions easier.
+ #
+ # _build/src/ contains generated sources, so that is filtered out as well.
+ test:
+ stage: test
+ script:
+ - meson _build . -Db_coverage=true -Ddisplay-tests=false
+ - cd _build
+ - ninja test
+ - gcovr --root=.
+ --exclude=src/
+ --exclude=../data/
+ --exclude=../eel/check-program.c
+ --exclude=../eel/eel-debug.c
+ --exclude=../eel/eel-lib-self-check-functions.c
+ --exclude=../eel/eel-self-checks.c
+ --exclude=../src/animation/
+ --exclude=../src/gtk/
+ --exclude=../src/nautilus-lib-self-check-functions.c
+ --exclude=../src/nautilus-self-check-functions.c
+ --exclude=../subprojects/libgd/
+ --exclude=../test/
+ coverage: '/^TOTAL.*\s+(\d+\%)$/'
+
+build:flatpak:
+ image: flatpak/flatpak-builder:gnome-3-28
+ stages:
+ - test
+ test:
+ stage: test
+ script:
+ - export
+ - flatpak-builder --force-clean --repo=repo app build-aux/flatpak/org.gnome.Nautilus.json