-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
84 lines (77 loc) · 1.5 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
# Copyright (c) 2020 Gonzalo Müller Bravo.
image: registry.gitlab.com/gmullerb/basecode-react-ts/debian-node-chromium-xvfb:9.12-14.2.0-73.0-1.19.2
cache:
key: "${CI_COMMIT_SHA}"
untracked: true
paths:
- node_modules/
stages:
- inception
- assess
- test
- assemble
- e2e
create-cache:
stage: inception
script:
- npm install
cache:
key: "${CI_COMMIT_SHA}"
policy: push
untracked: true
paths:
- node_modules/
assess:
stage: assess
script:
- npm run lint
cache:
key: "${CI_COMMIT_SHA}"
policy: pull
untracked: true
paths:
- node_modules/
test:
stage: test
script:
- npm test
cache:
key: "${CI_COMMIT_SHA}"
policy: pull
untracked: true
paths:
- node_modules/
coverage: '/Branches.*?(\d+(?:\.\d+)?)%/'
artifacts:
reports:
junit: build/reports/tests/tests_report.xml
assemble:
stage: assemble
script:
- mkdir -p build
- cd build
- npm pack ../
cache:
key: "${CI_COMMIT_SHA}"
policy: pull
untracked: true
paths:
- .gradle/
artifacts:
name: $CI_PROJECT_NAME-$(date +%Y%m%d-%H%M)-$CI_COMMIT_SHORT_SHA
paths:
- ./build/*.tgz
e2e-prod-tests:
stage: e2e
script:
- chmod +x ./config/e2e/chromiumver.sh
- xvfb-run --server-args="-screen 0 1600x1200x24" npm run e2e
cache:
key: "${CI_COMMIT_SHA}"
policy: pull
untracked: true
paths:
- node_modules/
artifacts:
reports:
junit: build/reports/e2e/junitresults.xml