-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
45 lines (43 loc) · 960 Bytes
/
.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
language: node_js
node_js: '10'
before_install:
- rvm install 2.5.1
jobs:
include:
- stage: test
script: bash scripts/test-build.sh
- stage: deploy
if: type = push
deploy:
- provider: script
on:
branch: master
skip_cleanup: true
script: bash scripts/deploy-master-root.sh
- stage: deploy
if: type = push
deploy:
- provider: script
on:
branch: master
skip_cleanup: true
script: bash scripts/deploy-master-version.sh
- stage: deploy
if: type = push
deploy:
- provider: script
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(feature|release|hotfix)\/*
skip_cleanup: true
script: bash scripts/deploy-branch.sh
- stage: deploy
if: type = push
deploy:
- provider: npm
email: $NPM_EMAIL_ADDRESS
api_key: $NPM_AUTH_TOKEN
on:
branch: master
tags: true
skip_cleanup: true