forked from superhero-com/superhero-wallet
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
51 lines (49 loc) · 977 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
46
47
48
49
50
51
language: node_js
node_js:
- 12
addons:
apt:
packages:
- libgconf-2-4
cache:
npm: true
directories:
- ~/.cache
script:
- npm run lint -- --no-fix
- npm test
- npm run build
deploy:
- provider: script
skip_cleanup: true
script: scripts/before-deploy.sh
on:
all_branches: true
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: dist/web/root
on:
branch: master
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN_SUPERHEROWALLET
keep_history: true
local_dir: dist/web/root
repo: superherowallet/wallet
target_branch: master
on:
branch: develop
- provider: releases
api_key: $GITHUB_TOKEN
file: dist-stage/artifacts/*
file_glob: true
skip_cleanup: true
on:
tags: true
- provider: script
skip_cleanup: true
script: scripts/deploy-stage.sh
on:
all_branches: true