-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
137 lines (126 loc) · 3.48 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:16.10
variables:
PLANTUML_URL: 'plantuml-server:8080'
OBP_WEBSOCKET_SERVER_URL: 'obp2ws-runtime:8090'
BASE_URL: 'plantuml'
# This folder is cached between builds
# http://docs.gitlab.com/ee/ci/yaml/README.html#cache
cache:
paths:
- src/node_modules/
stages:
- test
- reporting
- deploy
# starting this one first because it is the longest running as of 20201214
otherTests:
services:
- name: registry.kher.nl/tlc/plantuml-server:latest
alias: plantuml-server
- name: registry.kher.nl/fjouault/obp2runtime-animuml:latest
alias: obp2ws-runtime
stage: test
script:
- cd src
- npm install
- npm run testWithPersistentCoverage -- --grep "ComparedExecution|Explorations|ExplicitStateMachines|Observers.*EMI" --invert
- mv .nyc_output/ "$CI_JOB_NAME"
artifacts:
when: always
paths:
- src/otherTests/
reports:
junit: src/test-results.xml
coverage_report:
coverage_format: cobertura
path: src/coverage/cobertura-coverage.xml
ComparedExecution:
services:
- name: registry.kher.nl/fjouault/obp2runtime-animuml:latest
alias: obp2ws-runtime
stage: test
script:
- cd src
- npm install
- npm run testWithPersistentCoverage -- --grep ComparedExecution
- mv .nyc_output/ "$CI_JOB_NAME"
artifacts:
when: always
paths:
- src/ComparedExecution/
reports:
junit: src/test-results.xml
coverage_report:
coverage_format: cobertura
path: src/coverage/cobertura-coverage.xml
Explorations:
services:
- name: registry.kher.nl/fjouault/obp2runtime-animuml:latest
alias: obp2ws-runtime
stage: test
script:
- cd src
- npm install
- npm run testWithPersistentCoverage -- --grep Explorations
- mv .nyc_output/ "$CI_JOB_NAME"
artifacts:
when: always
paths:
- src/Explorations/
reports:
junit: src/test-results.xml
coverage_report:
coverage_format: cobertura
path: src/coverage/cobertura-coverage.xml
ExplicitStateMachines:
services:
- name: registry.kher.nl/fjouault/obp2runtime-animuml:latest
alias: obp2ws-runtime
stage: test
script:
- cd src
- npm install
- npm run testWithPersistentCoverage -- --grep ExplicitStateMachines
- mv .nyc_output/ "$CI_JOB_NAME"
artifacts:
when: always
paths:
- src/ExplicitStateMachines/
reports:
junit: src/test-results.xml
coverage_report:
coverage_format: cobertura
path: src/coverage/cobertura-coverage.xml
generate-reporting:
stage: reporting
dependencies:
- otherTests
- ComparedExecution
- Explorations
- ExplicitStateMachines
script:
- cd src
- npm run nyc-merge -- otherTests .nyc_output/otherTests.json
- npm run nyc-merge -- ComparedExecution .nyc_output/ComparedExecution.json
- npm run nyc-merge -- Explorations .nyc_output/Explorations.json
- npm run nyc-merge -- ExplicitStateMachines .nyc_output/ExplicitStateMachines.json
- npm run nyc-report -- --reporter=text --reporter=html
- mv coverage ../coverage
artifacts:
paths:
- coverage
pages:
stage: deploy
dependencies:
- generate-reporting
script:
- rm -rf public
- mv coverage public
artifacts:
paths:
- public
only:
- master