nautilus/.gitlab-ci.yml

141 lines
3.6 KiB
YAML
Raw Normal View History

include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
variables:
2018-05-04 08:42:41 +00:00
GIT_SUBMODULE_STRATEGY: normal
BUNDLE: "nautilus-dev.flatpak"
stages:
2018-12-12 15:51:41 +00:00
- triage
2018-05-04 08:42:41 +00:00
- test
- cross_environment
- deploy
.test_template: &distro_test
script:
2018-05-04 08:42:41 +00:00
- meson _build .
- cd _build
- ninja test
.flatpak_gcovr:
extends: .flatpak
after_script:
# 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+\%).*$/'
artifacts:
when: 'always'
# overwrite the path array of the '.flatpak' job
paths:
- "${BUNDLE}"
- '_build/meson-logs/meson-log.txt'
- '_build/meson-logs/testlog.txt'
#- '_build/coverage.html'
expire_in: 2 days
flatpak devel:
extends: '.flatpak'
stage: test
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
variables:
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.yml"
MESON_ARGS: "-Dprofile=Devel -Dtests=all"
FLATPAK_MODULE: "nautilus"
RUNTIME_REPO: "https://flathub.org/repo/flathub.flatpakrepo"
APP_ID: "org.gnome.NautilusDevel"
review:
dependencies:
- 'flatpak devel'
extends: '.review'
stop_review:
extends: '.stop_review'
nightly:
extends: '.publish_nightly'
dependencies:
- 'flatpak devel'
2018-10-09 11:04:03 +00:00
fedora rawhide:
image: fedora:rawhide
stage: cross_environment
2018-03-19 23:06:54 +00:00
before_script:
- dnf update -y --nogpgcheck
- dnf install -y 'dnf-command(builddep)' redhat-rpm-config libseccomp-devel gcovr --nogpgcheck
- dnf builddep -y nautilus --nogpgcheck
<<: *distro_test
only:
2018-05-04 08:42:41 +00:00
- schedules
- web
- tags
flatpak master:
stage: cross_environment
dependencies: []
variables:
2018-07-14 09:35:25 +00:00
MANIFEST_PATH: "build-aux/flatpak/org.gnome.NautilusMaster.yml"
MESON_ARGS: "-Dprofile=Devel -Dtests=all -Db_coverage=true"
FLATPAK_MODULE: "nautilus"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
APP_ID: "org.gnome.NautilusDevel"
extends: .flatpak
only:
- schedules
- web
- tags
.pages:
stage: deploy
dependencies:
- 'flatpak devel'
script:
- mkdir public
- mv _build/coverage.html ${CI_PROJECT_DIR}/public/index.html
artifacts:
paths:
- public
only:
- master
except:
variables:
# Don't run for translation commits
- $CI_COMMIT_TITLE =~ /^Update.*translation$/
triage:
2018-12-14 13:26:18 +00:00
image: ruby:2.4
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
only:
- schedules
triage:dry-run:
2018-12-14 13:26:18 +00:00
image: ruby:2.4
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
only:
- schedules
when: manual