diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-09 13:47:58 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-09 13:48:34 +0000 |
commit | 041a4c67b4a67bda7ac377a987825226d47ec44a (patch) | |
tree | f6eaee3b69abcb78fb6f19fee523ae79023661dd /.gitlab-ci.yml | |
parent | cc9376b677ed354326284b34f88d23c90828e4ba (diff) | |
download | gdk-pixbuf-041a4c67b4a67bda7ac377a987825226d47ec44a.tar.gz |
ci: Clean up the pipeline
Use common environment variables for the various jobs.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6118483ab..359c4968a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,16 +3,20 @@ stages: - docs - deploy +# Common variables variables: CCACHE_DIR: _ccache + COMMON_MESON_FLAGS: "-Dwerror=true -Dglib:werror=false" + LOADERS_FLAGS: "-Dpng=true -Djpeg=true -Dtiff=true" + MESON_TEST_TIMEOUT_MULTIPLIER: 3 + FEDORA_IMAGE: "registry.gitlab.gnome.org/gnome/gdk-pixbuf/fedora:v1" + .build-linux: - image: registry.gitlab.gnome.org/gnome/gdk-pixbuf/master:v2 - stage: build before_script: - mkdir -p _ccache script: - - meson ${BUILD_OPTS} _build . + - meson ${COMMON_MESON_FLAGS} ${LOADERS_FLAGS} ${BUILD_OPTS} _build . - ninja -C _build artifacts: when: on_failure @@ -25,22 +29,25 @@ variables: - _ccache/ meson-fedora-x86_64: + stage: build extends: .build-linux - variables: - BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Djasper=true" + image: ${FEDORA_IMAGE} after_script: - - meson test -C _build -t 3 + - meson test -C _build release-build: + stage: build extends: .build-linux + image: ${FEDORA_IMAGE} variables: - BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Dbuildtype=release" + BUILD_OPTS: "-Dbuildtype=release" after_script: - - meson test -C _build -t 3 + - meson test -C _build reference: - extends: .build-linux stage: docs + extends: .build-linux + image: ${FEDORA_IMAGE} variables: BUILD_OPTS: "-Dgtk_doc=true" after_script: |