-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitlab-ci.yml
81 lines (80 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
image: timbru31/ruby-node:2.7-fermium
stages:
- dependencies
- test
- build
- deploy
- publish
cache:
paths:
- node_modules/
dependencies:
stage: dependencies
script:
- npm ci
variables:
SYSTEM: "build"
test:
stage: test
script: npm run test:coverage
coverage: /All\sfiles.*?\s+(\d+.\d+)/
dependencies:
- dependencies
artifacts:
reports:
junit: junit.xml
cobertura: coverage/cobertura-coverage.xml
build:site:
stage: build
script:
- npm run build:site
artifacts:
paths:
- public
dependencies:
- dependencies
build:docs:
stage: build
script:
- bundle install
- npm run build:docs
artifacts:
paths:
- _site
build:lib:
stage: build
script:
- npm run build:lib
artifacts:
paths:
- dist
dependencies:
- dependencies
deploy:site:
stage: deploy
only:
- master
script:
- npm run deploy:site
dependencies:
- build:site
deploy:docs:
stage: deploy
only:
- master
script:
- npm run deploy:docs
dependencies:
- build:docs
publish:
stage: publish
only:
- tags
script:
- npm set registry "https://registry.npmjs.org"
- npm set //registry.npmjs.org/:_authToken $COOKIETHOUGH_GITLAB_NPM_TOKEN
- npx npe version $CI_COMMIT_TAG
- ./scripts/types.sh
- npm publish --tag $(./scripts/extract_tag.sh $CI_COMMIT_TAG)
dependencies:
- build:lib