[gobject-introspection: 1/3] ci: build libgirepository docs and push to gitlab pages. Fixes #231
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection: 1/3] ci: build libgirepository docs and push to gitlab pages. Fixes #231
- Date: Mon, 10 Dec 2018 18:20:20 +0000 (UTC)
commit 9b683265a0d0236a55cab5d43814b3547fe82425
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sun Dec 9 16:02:47 2018 +0100
ci: build libgirepository docs and push to gitlab pages. Fixes #231
.gitlab-ci.yml | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ca61feee..f478377a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
stages:
- build
+ - deploy
image: registry.gitlab.gnome.org/gnome/gobject-introspection:v3
@@ -13,20 +14,24 @@ fedora-x86_64-meson:
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
CCACHE_DIR: "${CI_PROJECT_DIR}/_ccache"
script:
- - meson --prefix /usr --libdir /usr/lib64 --buildtype debug -Dcairo=true -Dpython=python3 _build .
+ - meson --prefix /usr --libdir /usr/lib64 --buildtype debug -Dgtk-doc=true -Dcairo=true -Dpython=python3
_build .
- cd _build
- ninja
- meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib
+ - ninja gi-doc
- cd ..
+ - mkdir -p public
+ - mv _build/docs/reference/html/ public/docs/
- python3 -m pip install --user flake8
- python3 -m flake8 --count
except:
- tags
artifacts:
- when: on_failure
+ when: always
name: "gi-_${CI_COMMIT_REF_NAME}"
paths:
- "${CI_PROJECT_DIR}/_build/meson-logs"
+ - public
fedora-x86_64-autotools:
stage: build
@@ -90,3 +95,15 @@ vs2017-x64-meson:
name: "gi-_%CI_COMMIT_REF_NAME%"
paths:
- _build/meson-logs
+
+pages:
+ stage: deploy
+ dependencies:
+ - fedora-x86_64-meson
+ script:
+ - echo
+ artifacts:
+ paths:
+ - public
+ only:
+ - master
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]