Add ci release machinery
This commit is contained in:
parent
7bb02b5c93
commit
8a3b0d7208
@ -1,6 +1,15 @@
|
||||
include:
|
||||
- project: 'gnome/citemplates'
|
||||
file: 'flatpak/flatpak_ci_initiative.yml'
|
||||
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
|
||||
inputs:
|
||||
dist-job-name: "fedora-distcheck"
|
||||
tarball-artifact-path: "_build/meson-dist/${CI_PROJECT_NAME}+-${CI_COMMIT_TAG}.tar.xz"
|
||||
|
||||
stages:
|
||||
- build
|
||||
- docs
|
||||
- deploy
|
||||
|
||||
cache:
|
||||
paths:
|
||||
@ -10,16 +19,23 @@ fedora-distcheck:
|
||||
image: registry.gitlab.gnome.org/gnome/gtk/fedora-gtk3:v3
|
||||
variables:
|
||||
DO_DISTCHECK: "yes"
|
||||
when: manual
|
||||
when: always
|
||||
stage: build
|
||||
script:
|
||||
- git config --global --add safe.directory $CI_PROJECT_DIR
|
||||
- bash -x ./.gitlab-ci/test-docker-meson.sh
|
||||
artifacts:
|
||||
when: always
|
||||
name: "gtk3-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
paths:
|
||||
- "_build/meson-dist"
|
||||
|
||||
fedora-meson:
|
||||
image: registry.gitlab.gnome.org/gnome/gtk/fedora-gtk3:v3
|
||||
stage: build
|
||||
variables:
|
||||
EXTRA_MESON_FLAGS: "-Ddefault_library=both"
|
||||
DO_TEST: "yes"
|
||||
script:
|
||||
- bash -x ./.gitlab-ci/test-docker-meson.sh
|
||||
artifacts:
|
||||
@ -34,6 +50,7 @@ debian-meson:
|
||||
stage: build
|
||||
variables:
|
||||
EXTRA_MESON_FLAGS: "-Ddefault_library=both"
|
||||
DO_TEST: "yes"
|
||||
script:
|
||||
- bash -x ./.gitlab-ci/test-docker-meson.sh
|
||||
artifacts:
|
||||
|
@ -22,9 +22,10 @@ meson \
|
||||
cd _build
|
||||
ninja
|
||||
|
||||
# Meson < 0.57 can't exclude suites in a test_setup() so we have to
|
||||
# explicitly leave out the failing and flaky suites.
|
||||
xvfb-run -a -s "-screen 0 1024x768x24" \
|
||||
if [ -n "${DO_TEST-}" ]; then
|
||||
# Meson < 0.57 can't exclude suites in a test_setup() so we have to
|
||||
# explicitly leave out the failing and flaky suites.
|
||||
xvfb-run -a -s "-screen 0 1024x768x24" \
|
||||
meson test \
|
||||
--timeout-multiplier 4 \
|
||||
--print-errorlogs \
|
||||
@ -32,15 +33,16 @@ xvfb-run -a -s "-screen 0 1024x768x24" \
|
||||
--no-suite=flaky \
|
||||
--no-suite=failing
|
||||
|
||||
# We run the flaky and failing tests to get them reported in the CI logs,
|
||||
# but if they fail (which we expect they often will), that isn't an error.
|
||||
xvfb-run -a -s "-screen 0 1024x768x24" \
|
||||
# We run the flaky and failing tests to get them reported in the CI logs,
|
||||
# but if they fail (which we expect they often will), that isn't an error.
|
||||
xvfb-run -a -s "-screen 0 1024x768x24" \
|
||||
meson test \
|
||||
--timeout-multiplier 4 \
|
||||
--print-errorlogs \
|
||||
--suite=flaky \
|
||||
--suite=failing \
|
||||
|| true
|
||||
fi
|
||||
|
||||
if [ -n "${DO_DISTCHECK-}" ]; then
|
||||
meson dist --no-tests
|
||||
|
Loading…
Reference in New Issue
Block a user