This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
76 lines (75 loc) · 1.71 KB
/
.travis.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
language: node_js
node_js:
- 10.12.0
jobs:
include:
- stage: Build
script:
- cd utils
- npm i
- npm run build
- npm run lint
- cd ../client
- npm i ../utils
- npm i
- npm run build
- npm run lint
- cd ../core
- npm i ../utils
- npm i
- npm run build
- npm run lint
- npm run coverage
- stage: Utils-Release
if: (NOT type IN (pull_request)) AND (tag IS present)
script:
- cd utils
- cp ../readme.md .
- cp ../LICENSE .
- npm i
- npm run build
after_deploy:
deploy:
provider: npm
email: '$NPM_EMAIL'
api_key: '$NPM_TOKEN'
skip_cleanup: true
on:
tags: true
branch: master
- stage: Client-Release
if: (NOT type IN (pull_request)) AND (tag IS present)
script:
- cd client
- cp ../readme.md .
- cp ../LICENSE .
- npm i
- npm run build
after_deploy:
- cd ..
deploy:
provider: npm
email: '$NPM_EMAIL'
api_key: '$NPM_TOKEN'
skip_cleanup: true
on:
tags: true
branch: master
- stage: Core-Release
if: (NOT type IN (pull_request)) AND (tag IS present)
script:
- cd core
- cp ../readme.md .
- cp ../LICENSE .
- npm i
- npm run build
after_deploy:
- cd ..
deploy:
provider: npm
email: '$NPM_EMAIL'
api_key: '$NPM_TOKEN'
skip_cleanup: true
on:
tags: true
branch: master