-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
81 lines (75 loc) · 1.4 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
stages:
- install
- tests-unit
- test-lint
- test-e2e
- build
image:
name: cypress/browsers:node12.19.0-chrome86-ff82
pull_policy: if-not-present
install-job:
stage: install
script:
- cd ./sandbox-sdk-app
- npm install
- npm install -g @angular/cli
artifacts:
paths:
- ./sandbox-sdk-app/node_modules
tags:
- Tenfold
only:
- branches
- merge_requests
- tags
tests-unit-job:
stage: tests-unit
needs: [ install-job ]
script:
- cd ./sandbox-sdk-app
- npm run test
tags:
- Tenfold
only:
- branches
- merge_requests
- tags
test-lint-job:
stage: test-lint
needs: [ install-job, tests-unit-job ]
script:
- cd ./sandbox-sdk-app
- npm run lint
tags:
- Tenfold
only:
- branches
- merge_requests
- tags
test-e2e-job:
stage: test-e2e
needs: [ install-job, tests-unit-job, test-lint-job ]
script:
- cd ./sandbox-sdk-app
- ./node_modules/protractor/bin/webdriver-manager update --versions.chrome 86.0.4240.193
- npm run e2e
tags:
- Tenfold
only:
- branches
- merge_requests
- tags
build-job:
stage: build
needs: [ install-job, tests-unit-job, test-lint-job, test-e2e-job ]
script:
- cd ./sandbox-sdk-app
- npm run build --prod
variables:
codecov_token: $codecov_token
tags:
- Tenfold
only:
- branches
- merge_requests
- tags