summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml56
1 files changed, 48 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 326917703..6118483ab 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,17 +1,19 @@
stages:
- build
+ - docs
+ - deploy
-.cache-paths: &cache-paths
- paths:
- - _ccache/
+variables:
+ CCACHE_DIR: _ccache
-meson-fedora-x86_64:
+.build-linux:
image: registry.gitlab.gnome.org/gnome/gdk-pixbuf/master:v2
stage: build
- variables:
- BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Djasper=true"
+ before_script:
+ - mkdir -p _ccache
script:
- - bash -x ./.gitlab/ci/test-docker.sh
+ - meson ${BUILD_OPTS} _build .
+ - ninja -C _build
artifacts:
when: on_failure
name: "gdk-pixbuf-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
@@ -19,7 +21,45 @@ meson-fedora-x86_64:
- "${CI_PROJECT_DIR}/build_*/meson-logs"
cache:
key: "$CI_JOB_NAME"
- <<: *cache-paths
+ paths:
+ - _ccache/
+
+meson-fedora-x86_64:
+ extends: .build-linux
+ variables:
+ BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Djasper=true"
+ after_script:
+ - meson test -C _build -t 3
+
+release-build:
+ extends: .build-linux
+ variables:
+ BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Dbuildtype=release"
+ after_script:
+ - meson test -C _build -t 3
+
+reference:
+ extends: .build-linux
+ stage: docs
+ variables:
+ BUILD_OPTS: "-Dgtk_doc=true"
+ after_script:
+ - ninja -C _build gdk-pixbuf-doc
+ - mv _build/docs/html _reference
+ artifacts:
+ when: on_success
+ paths:
+ - _reference
+
+pages:
+ stage: deploy
+ script:
+ - mv _reference public
+ artifacts:
+ paths:
+ - public
+ only:
+ - master
msys2-mingw64:
stage: build