[help.gnome.org: 1/14] ci: Add a pipeline for building the website
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [help.gnome.org: 1/14] ci: Add a pipeline for building the website
- Date: Wed, 24 Nov 2021 07:36:41 +0000 (UTC)
commit bc8493dae8556d6b970506c6028968c61134aee8
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Sep 28 14:06:34 2021 +0100
ci: Add a pipeline for building the website
Download all the dependencies and then run pintail.
The output is then stored as an artefact.
.gitlab-ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..4169b82
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,40 @@
+stages:
+ - build
+
+.build-fedora:
+ image: fedora:latest
+ before_script:
+ - export PATH="$HOME/.local/bin:$PATH"
+ - dnf install -y python3 python3-pip python3-wheel
+ - dnf install -y ${FEDORA_DEPS}
+ - pip3 install --user ${PIP_DEPS}
+
+help-web:
+ stage: build
+ extends: .build-fedora
+ needs: []
+ variables:
+ FEDORA_DEPS:
+ diffutils
+ docbook-dtds
+ gcc
+ gettext-devel
+ git
+ itstool
+ libyaml
+ PIP_DEPS:
+ lxml
+ pyyaml
+ script:
+ - git clone --depth=1 https://github.com/projectmallard/pintail.git
+ - cd pintail && pip3 install --user -e . && cd ..
+ - git clone --depth=1 https://github.com/projectmallard/mallard-ducktype.git
+ - cd mallard-ducktype && pip3 install --user -e . && cd ..
+ - git clone --depth=1 https://github.com/projectmallard/pintail-itstool.git
+ - cd pintail-itstool && pip3 install --user -e . && cd ..
+ - pintail build -v --local
+ - mv __pintail__/build help-web
+ artifacts:
+ when: always
+ paths:
+ - help-web
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]