forked from energywebfoundation/switchboard-dapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (28 loc) · 794 Bytes
/
.travis.yml
File metadata and controls
28 lines (28 loc) · 794 Bytes
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
sudo: required
language: node_js
dist: xenial
node_js:
- 10.22.0
before_install:
- openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv
-in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
install:
- yes n | npm install
- cp src/environments/environment.prod.ts src/environments/environment.ts
- npm run build
script:
- echo "skipping tests"
deploy:
- provider: script
skip_cleanup: true
script: rsync -e "ssh -o StrictHostKeyChecking=no" -r dist/* $SB_WEB_HOST:~/switchboard-dapp/develop
on:
branch: develop
- provider: script
skip_cleanup: true
script: rsync -e "ssh -o StrictHostKeyChecking=no" -r dist/* $SB_WEB_HOST:~/switchboard-dapp/master
on:
branch: master