-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
71 lines (62 loc) · 2.18 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This file is a template, and might need editing before it works on your project.
# This is a sample GitLab CI/CD configuration file that should run without any modifications.
# It demonstrates a basic 3 stage CI/CD pipeline. Instead of real tests or scripts,
# it uses echo commands to simulate the pipeline execution.
#
# A pipeline is composed of independent jobs that run scripts, grouped into stages.
# Stages run in sequential order, but jobs within stages run in parallel.
#
# For more information, see: https://docs.gitlab.com/ee/ci/yaml/README.html#stages
# Image that is used in markdown spellcheck examples:
# image: "registry.gitlab.com/pipeline-components/markdown-spellcheck:latest"
image: ubuntu:22.04
stages: # List of stages for jobs, and their order of execution
- build
- deploy
vale-linting:
image:
name: jdkato/vale:latest
entrypoint: [""]
stage: build
allow_failure: true
before_script:
- apk update && apk add git
script:
- git config --global user.email "[email protected]"
- git config --global user.name "ifm-csr"
- rm -rf /builds/syntron/support/csr/o3r/formatting-tools /builds/syntron/support/csr/o3r/vale
- mkdir -p /builds/syntron/support/csr/o3r/formatting-tools
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab-ee.dev.ifm/syntron/support/csr/formatting-tools.git /builds/syntron/support/csr/o3r/formatting-tools
- cd /builds/syntron/support/csr/o3r/formatting-tools
- vale --minAlertLevel error /builds/syntron/support/csr/o3r/documentation/.
internal-pages:
image: python:3.8-slim
stage: build
script:
- pip install sphinx myst-parser
- mkdir site && cd site
- sphinx-quickstart
-p PDS
-a ifm-CSR
-r []
-l en
--extensions 'myst_parser'
--sep
- echo "master_doc = 'index_pds'" >> source/conf.py
- echo "myst_enable_extensions = ['colon_fence',]" >> source/conf.py
- cp -r ../PDS/* source/.
- sphinx-build source build
after_script:
- pwd
- ls site
- cp -r site/build public
artifacts:
paths:
- public
pages:
stage: deploy
script:
- ls public
artifacts:
paths:
- public