-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
196 lines (183 loc) · 3.92 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
services:
- docker:dind
stages:
- build
- qa
- e2e
- coverage
- reporting
- verify
- test
- docker-compose
- update
variables:
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
CODECOV_TOKEN: $CODECOV_TOKEN
COVERALLS_REPO_TOKEN: $COVERALLS_REPO_TOKEN
CODACY_PROJECT_TOKEN: $CODACY_PROJECT_TOKEN
DOCKER_HOST: "tcp://docker:2375"
DOCKER_TLS_CERTDIR: ""
DOCKER_DRIVER: overlay2
image: maven:3-openjdk-17
cache:
paths:
- .m2/repository/
before_script:
- apt-get update -y
- apt-get upgrade -y
- apt-get install build-essential -y
- bash latest-compose.sh
# - apt-get install -y docker-compose
# - apt-get install -y npm
# - npm install --global yarn
# - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
# - source ~/.bashrc
# - nvm install --lts
build:
image: maven:3.8-openjdk-17-slim
stage: build
cache:
- key: MAVEN
paths:
- video-series-command/target/
- video-series-core/target/
- video-series-query/target/
script:
- make no-test
except:
- schedules
qa:
image: maven:3.8-openjdk-17-slim
stage: build
cache:
- key: MAVEN
paths:
- video-series-command/target/
- video-series-core/target/
- video-series-query/target/
script:
- mvn test
needs:
- build
except:
- schedules
vma-series-electron-e2e:
image: node:19
stage: e2e
script:
- make dcup-full-action
- make cypress-electron
needs:
- qa
cache:
- key: MAVEN
paths:
- video-series-command/target/
- video-series-core/target/
- video-series-query/target/
allow_failure: true
timeout: 10m
retry: 2
except:
- schedules
vma-series-chrome-e2e:
image: node:19
stage: e2e
script:
- make dcup-full-action
- make cypress-chrome
needs:
- qa
cache:
- key: MAVEN
paths:
- video-series-command/target/
- video-series-core/target/
- video-series-query/target/
retry: 2
except:
- schedules
vma-series-firefox-e2e:
image: node:19
stage: e2e
script:
- make dcup-full-action
- make cypress-firefox
needs:
- qa
cache:
- key: MAVEN
paths:
- video-series-command/target/
- video-series-core/target/
- video-series-query/target/
retry: 2
except:
- schedules
vma-series-edge-e2e:
image: node:19
stage: e2e
script:
- make dcup-full-action
- make cypress-edge
needs:
- qa
cache:
- key: MAVEN
paths:
- video-series-command/target/
- video-series-core/target/
- video-series-query/target/
retry: 2
except:
- schedules
coverage:
image: maven:3.8-openjdk-17-slim
stage: coverage
cache:
- key: MAVEN
paths:
- video-series-command/target/
- video-series-core/target/
- video-series-query/target/
script:
- mvn jacoco:prepare-agent package jacoco:report
only:
- master
needs:
- build
except:
- schedules
reporting:
image: maven:3.8-openjdk-17-slim
stage: reporting
cache:
- key: MAVEN
paths:
- video-series-command/target/
- video-series-core/target/
- video-series-query/target/
script:
- mvn omni-coveragereporter:report
only:
- master
needs:
- coverage
- vma-series-edge-e2e
- vma-series-chrome-e2e
- vma-series-firefox-e2e
- vma-series-electron-e2e
except:
- schedules
update-dependencies:
image: renovate/renovate
stage: update
before_script:
- ''
script:
- export RENOVATE_CONFIG=$(< renovate.json)
- renovate
only:
- schedules
needs: []