-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (66 loc) · 2.21 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
language: node_js
version: 1.0
node_js:
- '12'
install:
- npm install
env:
global:
secure: 'iUjCdepYFIbxfC3XDm8Lqe6ZuHcCdtbh9kWfg4m2L6/a7lfDBftK1lTO7KxjB3n/uoKvImvpouqqdteqNzcfsylCOK9CNSxjKbb8TtdvUiYHkq0bLb5HfKg05OaS7Cq9m9PuEwKl//X4jpGJw754/d8eNiNIkhapIepWf1nnD64xnHRUzstuwOY1/wxI9Mm97mYUvK7XSe4mscgTodzluLYxkthzB8leXksPh4ltCWx0FLRqu8D/VOl522itcW5XuSl1G/hgzK10SiOM5PTHxU1LJDUEJMfb2SFMSmduRJnVLs7ugkI86/WUYsiiHtrvBTEZwYUyqtLSdEmtDrUxRqbQZv39T2tzODGNYo3Fk8hgYveSiQkI+JQreg327uqAIbCcT1XnoPk8opiEzgra46PmVpnF5PYs2Fi/dJqwZeWSqXmLiiMzxc2CZmE7pYvINmpbHE3MrF4XhyPyvCsF9KZpsjBRkL/Z+RHe/i9zkpgZxsK/kfCaq2RnCfn1eWI1HTcqZFeu+bPU7PS0zP+nLF3UKsmNX5sbS/SiRn2EgaYT82wDGJJFsqAuSy8tvcra5GN9QDSpAFxC3fxc+pfyi0tmVdy1zuVzBP8oJS8E/tAjdUVAOvZ9JlKlojObepCfoU5UzxaAA5GIvgpSww9QjiijLrges4l5psuPd+/HZb4='
jobs:
include:
- stage: test
script:
- node --version
- npm --version
- echo "Testing Started ..."
- npm test
- echo "Testing Finished."
after_success:
- npm run coverage
- stage: tagged-prerelease
if: tag =~ ^v\d+\.\d+\.\d+-.*$
deploy:
provider: releases
api_key: '$GH_TOKEN'
skip_cleanup: false
on:
tags: true
prerelease: true
- stage: npm-prerelease
if: tag =~ ^v\d+\.\d+\.\d+-.*$
script:
- echo "NPM Deploying Started ..."
- npm run build
- echo "NPM Building Finished."
deploy:
edge: true
provider: npm
email: [email protected]
api_key: '$NPM_TOKEN'
skip_cleanup: true
tag: beta
on:
tags: true
- stage: tagged-release
if: tag =~ ^v\d+\.\d+\.\d+$
deploy:
provider: releases
api_key: '$GH_TOKEN'
skip_cleanup: false
on:
tags: true
- stage: npm-release
if: tag =~ ^v\d+\.\d+\.\d+$
script:
- echo "NPM Deploying Started ..."
- npm run build
- echo "NPM Building Finished."
deploy:
edge: true
provider: npm
email: [email protected]
api_key: '$NPM_TOKEN'
skip_cleanup: true
on:
tags: true