-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
63 lines (52 loc) · 1.07 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
image: docker:19.03.8
variables:
# registry
NPM_REGISTRY: "https://esisoj70.emea.nsn-net.net/artifactory/api/npm/npmjs-remote/"
PYPI_REGISTRY: "https://esisoj70.emea.nsn-net.net/artifactory/api/pypi/python-remote/simple"
# docker registry
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
services:
- docker:19.03.8-dind
stages:
- setup
- lint
- unit test
- build
cache:
untracked: true
key: "$CI_BUILD_REF_NAME"
paths:
- node_modules/
.retry_config:
retry:
max: 2
when:
- unknown_failure
- api_failure
- runner_system_failure
- stuck_or_timeout_failure
.auth_config:
extends: .retry_config
image: node:12.18-slim
auth setup:
extends: .auth_config
stage: setup
script:
- npm install
auth lint:
extends: .auth_config
stage: lint
script:
- npm run lint
auth unit test:
extends: .auth_config
stage: unit test
coverage: '/All files\s*\|\s*\d+\.*\d*\s*/'
script:
- npm test
auth build and push:
stage: build
when: manual
script:
- CONTAINER_NAME=auth ./build_and_push.sh