forked from bitshares/bitshares-ui
-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy path.travis.yml
More file actions
112 lines (101 loc) · 3.71 KB
/
.travis.yml
File metadata and controls
112 lines (101 loc) · 3.71 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
language: node_js
node_js:
- "10"
env:
PATH=$PATH:$HOME/.local/bin
cache:
directories:
- "node_modules"
- "build"
install:
- pip install --user awscli
stages:
- name: build-testnet
if: branch = develop
- name: deploy-testnet
if: branch = develop
- name: build-stage
if: branch = master
- name: deploy-stage
if: branch = master
- name: build-preview
if: branch = feature/cb-1648-upstream
- name: deploy-preview
if: branch = feature/cb-1648-upstream
- name: build-prod
if: tag =~ /^v\d+\.\d+(\.\d+)?$/
- name: deploy-prod
if: tag =~ /^v\d+\.\d+(\.\d+)?$/
jobs:
include:
- stage: build-testnet
script:
- export RECAPTCHA_SITE_KEY=$TEST_RECAPTCHA_SITE_KEY
- export CRYPTOBRIDGE_PUB_KEY=$TEST_CRYPTOBRIDGE_PUB_KEY
- export TESTNET=true
- export WALLET_URL=$TEST_WALLET_URL
- export API_URL=$TEST_API_URL
- export API_SUPPORT_URL=$TEST_API_SUPPORT_URL
- npm install
- npm run build
- stage: deploy-testnet
script:
- ls -la ./build/dist/
- cat ./build/dist/index.html
- export AWS_ACCESS_KEY_ID=$TEST_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$TEST_AWS_SECRET_ACCESS_KEY
- aws s3 rm s3://wallet.testnet.crypto-bridge.org/index.html
- aws s3 sync ./build/dist/ s3://wallet.testnet.crypto-bridge.org/ --delete --exclude "assets/*"
- stage: build-stage
script:
- export RECAPTCHA_SITE_KEY=$STAGE_RECAPTCHA_SITE_KEY
- export CRYPTOBRIDGE_PUB_KEY=$STAGE_CRYPTOBRIDGE_PUB_KEY
- export STAGENET=true
- export WALLET_URL=$STAGE_WALLET_URL
- export API_URL=$STAGE_API_URL
- export API_SUPPORT_URL=$STAGE_API_SUPPORT_URL
- npm install
- npm run build
- stage: deploy-stage
script:
- ls -la ./build/dist/
- cat ./build/dist/index.html
- export AWS_ACCESS_KEY_ID=$STAGE_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$STAGE_AWS_SECRET_ACCESS_KEY
- aws s3 rm s3://wallet.stage.crypto-bridge.org/index.html
- aws s3 sync ./build/dist/ s3://wallet.stage.crypto-bridge.org/ --delete --exclude "assets/*"
- stage: build-preview
script:
- export RECAPTCHA_SITE_KEY=$PREVIEW_RECAPTCHA_SITE_KEY
- export CRYPTOBRIDGE_PUB_KEY=$PREVIEW_CRYPTOBRIDGE_PUB_KEY
- export CHAIN_ID=$PREVIEW_CHAIN_ID
- export WALLET_URL=$PREVIEW_WALLET_URL
- export API_URL=$PREVIEW_API_URL
- export API_SUPPORT_URL=$PREVIEW_API_SUPPORT_URL
- npm install
- npm run build
- stage: deploy-preview
script:
- ls -la ./build/dist/
- cat ./build/dist/index.html
- export AWS_ACCESS_KEY_ID=$PREVIEW_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$PREVIEW_AWS_SECRET_ACCESS_KEY
- aws s3 rm s3://wallet.preview.crypto-bridge.org/index.html
- aws s3 sync ./build/dist/ s3://wallet.preview.crypto-bridge.org/ --delete --exclude "assets/*"
- stage: build-prod
script:
- export RECAPTCHA_SITE_KEY=$PROD_RECAPTCHA_SITE_KEY
- export CRYPTOBRIDGE_PUB_KEY=$PROD_CRYPTOBRIDGE_PUB_KEY
- export WALLET_URL=$PROD_WALLET_URL
- export API_URL=$PROD_API_URL
- export API_SUPPORT_URL=$PROD_API_SUPPORT_URL
- npm install
- npm run build
- stage: deploy-prod
script:
- ls -la ./build/dist/
- cat ./build/dist/index.html
- export AWS_ACCESS_KEY_ID=$PROD_AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$PROD_AWS_SECRET_ACCESS_KEY
- aws s3 rm s3://wallet.crypto-bridge.org/index.html
- aws s3 sync ./build/dist/ s3://wallet.crypto-bridge.org/ --delete --exclude "assets/*"