2018-12-05 15:44:41 +00:00
|
|
|
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
|
|
|
|
|
2018-03-18 13:40:35 +00:00
|
|
|
variables:
|
2018-05-04 08:42:41 +00:00
|
|
|
GIT_SUBMODULE_STRATEGY: normal
|
2018-05-06 17:25:32 +00:00
|
|
|
BUNDLE: "nautilus-dev.flatpak"
|
2018-03-18 13:40:35 +00:00
|
|
|
|
2018-03-16 14:51:02 +00:00
|
|
|
stages:
|
2018-12-12 15:51:41 +00:00
|
|
|
- triage
|
2018-05-04 08:42:41 +00:00
|
|
|
- test
|
2018-05-29 06:30:35 +00:00
|
|
|
- cross_environment
|
2018-05-06 17:25:32 +00:00
|
|
|
- deploy
|
2018-03-18 15:41:40 +00:00
|
|
|
|
|
|
|
.test_template: &distro_test
|
|
|
|
script:
|
2018-05-04 08:42:41 +00:00
|
|
|
- meson _build .
|
|
|
|
- cd _build
|
|
|
|
- ninja test
|
2018-03-18 15:41:40 +00:00
|
|
|
|
2018-12-05 15:44:41 +00:00
|
|
|
.flatpak_gcovr:
|
|
|
|
extends: .flatpak
|
2018-10-22 13:17:46 +00:00
|
|
|
after_script:
|
2018-10-09 13:47:32 +00:00
|
|
|
# Generate coverage report
|
|
|
|
- cd _build
|
|
|
|
- flatpak build ../app gcovr
|
|
|
|
--html-details
|
|
|
|
-o coverage.html
|
|
|
|
--print-summary
|
|
|
|
--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: '/^branches:.*\s+(\S+\%).*$/'
|
2018-03-17 23:16:06 +00:00
|
|
|
artifacts:
|
2018-12-05 15:44:41 +00:00
|
|
|
when: 'always'
|
|
|
|
# overwrite the path array of the '.flatpak' job
|
2018-03-17 23:16:06 +00:00
|
|
|
paths:
|
2018-12-05 15:44:41 +00:00
|
|
|
- "${BUNDLE}"
|
|
|
|
- '_build/meson-logs/meson-log.txt'
|
|
|
|
- '_build/meson-logs/testlog.txt'
|
2019-04-30 14:44:24 +00:00
|
|
|
#- '_build/coverage.html'
|
2018-12-05 15:44:41 +00:00
|
|
|
expire_in: 2 days
|
2018-10-09 10:57:19 +00:00
|
|
|
|
|
|
|
flatpak devel:
|
2019-09-28 21:47:22 +00:00
|
|
|
extends: '.flatpak'
|
2020-03-06 10:50:49 +00:00
|
|
|
stage: test
|
2020-02-06 20:28:17 +00:00
|
|
|
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
|
2018-10-09 10:57:19 +00:00
|
|
|
variables:
|
|
|
|
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.yml"
|
2019-04-14 12:59:29 +00:00
|
|
|
MESON_ARGS: "-Dprofile=Devel -Dtests=all"
|
2018-10-09 10:57:19 +00:00
|
|
|
FLATPAK_MODULE: "nautilus"
|
2019-09-28 22:04:08 +00:00
|
|
|
RUNTIME_REPO: "https://flathub.org/repo/flathub.flatpakrepo"
|
2018-12-05 15:44:41 +00:00
|
|
|
APP_ID: "org.gnome.NautilusDevel"
|
2018-05-06 17:25:32 +00:00
|
|
|
|
|
|
|
review:
|
|
|
|
dependencies:
|
2018-12-05 15:44:41 +00:00
|
|
|
- 'flatpak devel'
|
|
|
|
extends: '.review'
|
2018-05-06 17:25:32 +00:00
|
|
|
|
|
|
|
stop_review:
|
2018-12-05 15:44:41 +00:00
|
|
|
extends: '.stop_review'
|
2018-03-18 15:53:57 +00:00
|
|
|
|
2019-09-28 22:07:36 +00:00
|
|
|
nightly:
|
|
|
|
extends: '.publish_nightly'
|
|
|
|
dependencies:
|
|
|
|
- 'flatpak devel'
|
|
|
|
|
2018-10-09 11:04:03 +00:00
|
|
|
fedora rawhide:
|
2018-03-17 23:16:06 +00:00
|
|
|
image: fedora:rawhide
|
2018-05-29 06:30:35 +00:00
|
|
|
stage: cross_environment
|
2018-03-19 23:06:54 +00:00
|
|
|
before_script:
|
2018-09-07 08:45:02 +00:00
|
|
|
- dnf update -y --nogpgcheck
|
|
|
|
- dnf install -y 'dnf-command(builddep)' redhat-rpm-config libseccomp-devel gcovr --nogpgcheck
|
|
|
|
- dnf builddep -y nautilus --nogpgcheck
|
2018-10-09 13:47:32 +00:00
|
|
|
<<: *distro_test
|
2018-03-16 16:57:23 +00:00
|
|
|
only:
|
2018-05-04 08:42:41 +00:00
|
|
|
- schedules
|
|
|
|
- web
|
|
|
|
- tags
|
2018-03-17 23:16:06 +00:00
|
|
|
|
2018-10-09 10:57:19 +00:00
|
|
|
flatpak master:
|
2018-05-29 06:30:35 +00:00
|
|
|
stage: cross_environment
|
2020-03-06 11:00:24 +00:00
|
|
|
dependencies: []
|
2018-05-28 13:16:05 +00:00
|
|
|
variables:
|
2018-07-14 09:35:25 +00:00
|
|
|
MANIFEST_PATH: "build-aux/flatpak/org.gnome.NautilusMaster.yml"
|
2019-03-21 13:12:22 +00:00
|
|
|
MESON_ARGS: "-Dprofile=Devel -Dtests=all -Db_coverage=true"
|
2018-05-28 13:16:05 +00:00
|
|
|
FLATPAK_MODULE: "nautilus"
|
2019-09-28 22:04:08 +00:00
|
|
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
2019-03-21 13:12:22 +00:00
|
|
|
APP_ID: "org.gnome.NautilusDevel"
|
2018-12-05 15:44:41 +00:00
|
|
|
extends: .flatpak
|
2018-05-28 13:16:05 +00:00
|
|
|
only:
|
|
|
|
- schedules
|
|
|
|
- web
|
|
|
|
- tags
|
2018-10-09 13:47:32 +00:00
|
|
|
|
2019-04-30 15:40:07 +00:00
|
|
|
.pages:
|
2018-10-09 13:47:32 +00:00
|
|
|
stage: deploy
|
2018-12-10 12:21:58 +00:00
|
|
|
dependencies:
|
|
|
|
- 'flatpak devel'
|
2018-10-09 13:47:32 +00:00
|
|
|
script:
|
|
|
|
- mkdir public
|
2019-04-30 15:40:07 +00:00
|
|
|
- mv _build/coverage.html ${CI_PROJECT_DIR}/public/index.html
|
2018-10-09 13:47:32 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2018-10-09 16:54:05 +00:00
|
|
|
|
2018-10-09 13:47:32 +00:00
|
|
|
only:
|
2018-10-30 11:42:50 +00:00
|
|
|
- master
|
2019-01-17 15:53:27 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
# Don't run for translation commits
|
|
|
|
- $CI_COMMIT_TITLE =~ /^Update.*translation$/
|
|
|
|
|
2018-10-30 11:42:50 +00:00
|
|
|
|
|
|
|
triage:
|
2018-12-14 13:26:18 +00:00
|
|
|
image: ruby:2.4
|
2018-10-30 11:42:50 +00:00
|
|
|
stage: triage
|
|
|
|
script:
|
|
|
|
- gem install gitlab-triage
|
2018-12-14 13:37:42 +00:00
|
|
|
- gitlab-triage --token $TRIAGE_BOT_TOKEN --project-id $CI_PROJECT_PATH --host-url https://gitlab.gnome.org
|
2018-10-30 11:42:50 +00:00
|
|
|
only:
|
|
|
|
- schedules
|
|
|
|
|
|
|
|
triage:dry-run:
|
2018-12-14 13:26:18 +00:00
|
|
|
image: ruby:2.4
|
2018-10-30 11:42:50 +00:00
|
|
|
stage: triage
|
|
|
|
script:
|
|
|
|
- gem install gitlab-triage
|
2018-12-14 13:37:42 +00:00
|
|
|
- gitlab-triage --dry-run --token $TRIAGE_BOT_TOKEN --project-id $CI_PROJECT_PATH --host-url https://gitlab.gnome.org
|
2018-10-30 11:42:50 +00:00
|
|
|
only:
|
|
|
|
- schedules
|
2018-12-05 15:44:41 +00:00
|
|
|
when: manual
|