-
Notifications
You must be signed in to change notification settings - Fork 4
/
.ci.yml
113 lines (100 loc) · 2.69 KB
/
.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
image: $CI_IMAGE
.common_only: &common_only
only:
- main
- dev
- merge_requests
variables:
GIT_STRATEGY: clone
GIT_SUBMODULE_STRATEGY: recursive
stages:
- lint
- build
- docs
pre-commit:
stage: lint
<<: *common_only
script:
- pre-commit run --all-files
commit-lint:
stage: lint
only:
- merge_requests
script:
- ./.github/scripts/lint-commits.sh origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME $CI_COMMIT_SHA
build-server-app:
stage: build
<<: *common_only
script:
- ./build server-app
test-singlehtml-build:
stage: build
<<: *common_only
script:
- ./build static-html ./examples/sample-specification.json ./examples/sample-dataflow.json --editor-title "Test webpage" --output-directory ./output-dir --clean-build --single-html output.html --minify-specification
test-validate:
stage: build
<<: *common_only
script:
- ./validate ./examples/sample-specification.json ./examples/sample-dataflow.json
test-python:
stage: build
<<: *common_only
script:
- pip3 install -e ".[test,backend-communication]"
- python3 -m pytest
test-frontend:
stage: build
<<: *common_only
script:
- ./build static-html ./examples/sample-specification.json ./examples/sample-dataflow.json
- cd pipeline_manager/frontend/
- npx playwright install --with-deps
- npm run test
artifacts:
paths:
- pipeline_manager/frontend/playwright-report
- pipeline_manager/frontend/test-results
check-links:
stage: build
<<: *common_only
script:
- pip install -e '.[docs]'
- cd docs
- make linkcheck
allow_failure: true
build-docs-and-static-html:
stage: build
<<: *common_only
script:
- pip install --no-deps -e .
- cd docs
- echo -en "\nhtml_js_files = [ '$ANNOTANT' ]" >> source/conf.py
- |
make html SPHINXOPTS="-W"
make latexpdf
- cp build/latex/*.pdf build/html/
artifacts:
paths:
- docs/build/html
- docs/build/latex/*.pdf
docs:
image: $CI_DOCS_DOCKER_IMAGE
stage: docs
<<: *common_only
dependencies:
- build-docs-and-static-html
- test-frontend
variables:
GIT_STRATEGY: none
tags:
- docs
script:
- cd docs
- cp -r ../pipeline_manager/frontend/test-results build/html/
- cp -r ../pipeline_manager/frontend/playwright-report build/html/
- tar -cf $CI_DOCS_ARCHIVE -C build/html/ .
- mv $CI_DOCS_ARCHIVE ..
artifacts:
paths:
- $CI_DOCS_ARCHIVE