-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
75 lines (67 loc) · 1.52 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
---
stages:
- quality
- test
- deploy
eslint:
stage: quality
image: node:17-alpine
script:
- apk add git make bash
- make install_prereqs
- make quality
.testing_script:
script:
- apk add git make bash
- cd providence && make install_prereqs
- make test
- cd ../providence-redux && make install_prereqs
- make test
tests-node18:
extends: .testing_script
stage: test
image: node:18-alpine
tests-node17:
extends: .testing_script
stage: test
image: node:17-alpine
tests-node16:
extends: .testing_script
stage: test
image: node:16-alpine
documentation:
stage: test
image: nikolaik/python-nodejs:python3.8-nodejs18-alpine
script:
- apk add git make bash
- pip install -r docs/requirements.txt
- cd providence && npm install && cd ..
- cd providence-redux && npm install && cd ..
- cd docs && make build
npm-push-providence:
stage: deploy
image: node:18-alpine
only:
refs:
- master
changes:
- providence/**
script:
- apk add git make bash
- cd providence && make install_prereqs
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
- make publish
npm-push-providence-redux:
stage: deploy
image: node:18-alpine
only:
refs:
- master
changes:
- providence-redux/**
script:
- apk add git make bash
- cd providence && make install_prereqs && cd ..
- cd providence-redux && make install_prereqs
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
- make publish