[gitg/alatiera/ci-docs: 6/6] CI: Reuse the docs from the flatpak job
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/alatiera/ci-docs: 6/6] CI: Reuse the docs from the flatpak job
- Date: Sun, 14 Oct 2018 20:38:21 +0000 (UTC)
commit 010c9d1a866ac9755b9fe41a2a58c834212c0ddd
Author: Jordan Petridis <jpetridis gnome org>
Date: Sun Oct 14 18:29:37 2018 +0300
CI: Reuse the docs from the flatpak job
.gitlab-ci.yml | 35 +++++++++++++----------------------
1 file changed, 13 insertions(+), 22 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bfc2add9..4a381849 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
stages:
- test
- review
+- deploy
variables:
BUNDLE: "gitg-git.flatpak"
@@ -21,6 +22,12 @@ flatpak:
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
- flatpak build app meson --prefix=/app ${MESON_ARGS} _build
- flatpak build app ninja -C _build install
+
+ # Build the docs
+ - flatpak build app ninja -C _build libgitg-ext-docs
+ - mkdir -p public
+ - mv docs/gitgext public/
+
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
- xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
@@ -28,9 +35,10 @@ flatpak:
artifacts:
paths:
- ${BUNDLE}
+ - public/
- _build/meson-logs/meson-log.txt
- _build/meson-logs/testlog.txt
- expire_in: 30 days
+ expire_in: 6 hours
cache:
paths:
@@ -62,31 +70,14 @@ stop_review:
pages:
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
- stage: review
-
- variables:
- # Replace with your manifest path
- MANIFEST_PATH: "org.gnome.Gitg.json"
- RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
- FLATPAK_MODULE: "gitg"
- MESON_ARGS: "-Ddeprecations=true --buildtype=debugoptimized -Ddocs=true"
- DBUS_ID: "org.gnome.gitg"
-
+ stage: deploy
+ dependencies:
+ - flatpak
script:
- - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
- - flatpak build app meson --prefix=/app ${MESON_ARGS} _build
- - flatpak build app ninja -C _build libgitg-ext-docs
- - mkdir -p public
- - mv docs public/valadocs
-
+ - echo "Deploying docs"
artifacts:
paths:
- public
-
- cache:
- paths:
- - .flatpak-builder/cache
-
only:
- master
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]