mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
ci: Use variables for docker images
This commit is contained in:
parent
c0a019c293
commit
5daad373a3
@ -10,6 +10,10 @@ cache:
|
|||||||
- _ccache/
|
- _ccache/
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/glib/fedora:v5"
|
||||||
|
DEBIAN_IMAGE: "registry.gitlab.gnome.org/gnome/glib/debian-stable:v5"
|
||||||
|
ANDROID_IMAGE: "registry.gitlab.gnome.org/gnome/glib/android-ndk:v1"
|
||||||
|
MINGW_IMAGE: "registry.gitlab.gnome.org/gnome/glib/mingw:v1"
|
||||||
MESON_TEST_TIMEOUT_MULTIPLIER: 2
|
MESON_TEST_TIMEOUT_MULTIPLIER: 2
|
||||||
G_MESSAGES_DEBUG: all
|
G_MESSAGES_DEBUG: all
|
||||||
MESON_COMMON_OPTIONS: "--buildtype debug --fatal-meson-warnings"
|
MESON_COMMON_OPTIONS: "--buildtype debug --fatal-meson-warnings"
|
||||||
@ -22,7 +26,7 @@ variables:
|
|||||||
|
|
||||||
style-check-diff:
|
style-check-diff:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/debian-stable:v5
|
image: $DEBIAN_IMAGE
|
||||||
stage: style-check
|
stage: style-check
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
@ -30,7 +34,7 @@ style-check-diff:
|
|||||||
|
|
||||||
fedora-x86_64:
|
fedora-x86_64:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/fedora:v5
|
image: $FEDORA_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
|
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
|
||||||
@ -64,7 +68,7 @@ fedora-x86_64:
|
|||||||
|
|
||||||
debian-stable-x86_64:
|
debian-stable-x86_64:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/debian-stable:v5
|
image: $DEBIAN_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- meson ${MESON_COMMON_OPTIONS}
|
- meson ${MESON_COMMON_OPTIONS}
|
||||||
@ -92,7 +96,7 @@ debian-stable-x86_64:
|
|||||||
|
|
||||||
installed-tests:
|
installed-tests:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/fedora:v5
|
image: $FEDORA_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
# FIXME move to docker image
|
# FIXME move to docker image
|
||||||
@ -151,7 +155,7 @@ installed-tests:
|
|||||||
|
|
||||||
G_DISABLE_ASSERT:
|
G_DISABLE_ASSERT:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/fedora:v5
|
image: $FEDORA_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
CPPFLAGS: "-DG_DISABLE_ASSERT"
|
CPPFLAGS: "-DG_DISABLE_ASSERT"
|
||||||
@ -178,7 +182,7 @@ G_DISABLE_ASSERT:
|
|||||||
|
|
||||||
valgrind:
|
valgrind:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/fedora:v5
|
image: $FEDORA_IMAGE
|
||||||
stage: analysis
|
stage: analysis
|
||||||
variables:
|
variables:
|
||||||
MESON_TEST_TIMEOUT_MULTIPLIER: 10
|
MESON_TEST_TIMEOUT_MULTIPLIER: 10
|
||||||
@ -220,7 +224,7 @@ valgrind:
|
|||||||
|
|
||||||
cross-android_api21_arm64:
|
cross-android_api21_arm64:
|
||||||
<<: *cross-template
|
<<: *cross-template
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/android-ndk:v1
|
image: $ANDROID_IMAGE
|
||||||
script:
|
script:
|
||||||
# FIXME: add --werror
|
# FIXME: add --werror
|
||||||
# We use -Diconv=auto to test that we successfully detect that iconv is not
|
# We use -Diconv=auto to test that we successfully detect that iconv is not
|
||||||
@ -230,7 +234,7 @@ cross-android_api21_arm64:
|
|||||||
|
|
||||||
cross-android_api28_arm64:
|
cross-android_api28_arm64:
|
||||||
<<: *cross-template
|
<<: *cross-template
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/android-ndk:v1
|
image: $ANDROID_IMAGE
|
||||||
script:
|
script:
|
||||||
# FIXME: add --werror
|
# FIXME: add --werror
|
||||||
- meson ${MESON_COMMON_OPTIONS} --cross-file=/opt/cross_file_android_arm64_28.txt -Dinternal_pcre=true _build
|
- meson ${MESON_COMMON_OPTIONS} --cross-file=/opt/cross_file_android_arm64_28.txt -Dinternal_pcre=true _build
|
||||||
@ -238,7 +242,7 @@ cross-android_api28_arm64:
|
|||||||
|
|
||||||
cross-mingw64:
|
cross-mingw64:
|
||||||
<<: *cross-template
|
<<: *cross-template
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/mingw:v1
|
image: $MINGW_IMAGE
|
||||||
script:
|
script:
|
||||||
# FIXME: Add --werror
|
# FIXME: Add --werror
|
||||||
- meson ${MESON_COMMON_OPTIONS} --cross-file=/opt/cross_file_mingw64.txt _build
|
- meson ${MESON_COMMON_OPTIONS} --cross-file=/opt/cross_file_mingw64.txt _build
|
||||||
@ -378,7 +382,7 @@ macos:
|
|||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/fedora:v5
|
image: $FEDORA_IMAGE
|
||||||
stage: coverage
|
stage: coverage
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||||
@ -390,7 +394,7 @@ coverage:
|
|||||||
|
|
||||||
scan-build:
|
scan-build:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/fedora:v5
|
image: $FEDORA_IMAGE
|
||||||
stage: analysis
|
stage: analysis
|
||||||
script:
|
script:
|
||||||
- meson ${MESON_COMMON_OPTIONS}
|
- meson ${MESON_COMMON_OPTIONS}
|
||||||
@ -421,7 +425,7 @@ pages:
|
|||||||
- public
|
- public
|
||||||
|
|
||||||
dist-job:
|
dist-job:
|
||||||
image: registry.gitlab.gnome.org/gnome/glib/fedora:v5
|
image: $FEDORA_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user