summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-06-26 11:27:51 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-06-26 11:37:24 +0100
commitc7eada6cac522d095fdd13770619d807ca538346 (patch)
treea8db5852c9962456c010cf51eaa6541d1a0e1f2a
parent716158e6dec609bc973d4242c922cdb57bbcb7ad (diff)
downloadgdk-pixbuf-c7eada6cac522d095fdd13770619d807ca538346.tar.gz
ci: Build and deploy the API reference
-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