summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-11-21 18:16:12 -0300
committerThibault Saunier <tsaunier@gnome.org>2018-11-25 16:33:11 +0000
commit6dc194e8fcf6dff8603b904e245655030d2803d3 (patch)
tree0b7fe5b1d6c48813e0dd011d03293cb1b63cd2a4 /.gitlab-ci.yml
parent7de2c2dc7a84a01a17fe843d2e6317153b231656 (diff)
Add a .gitlab-ci.yml file to build and export the doc as gitlab pages
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..e30f04d
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,20 @@
+deploy:
+ image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora-build:latest'
+ stage: deploy
+
+ script:
+ - dnf install -y cmake
+ - pip3 install --upgrade hotdoc meson
+ - meson build/
+ - ninja -C build/ GStreamer-doc
+ - mv build/GStreamer-doc/html documentation/
+ - ARTIFACTS_PATH=$(echo "${CI_JOB_URL}/artifacts/documentation/index.html" |sed "s/${CI_PROJECT_NAMESPACE}/-/g" | sed "s/gitlab/${CI_PROJECT_NAMESPACE}.pages/g")
+ - echo ""
+ - echo "=========================================="
+ - echo "You can find the result at $ARTIFACTS_PATH"
+ - echo "=========================================="
+ - echo ""
+
+ artifacts:
+ paths:
+ - documentation/ \ No newline at end of file