This repository has been archived by the owner on Jul 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
52 lines (52 loc) · 1.8 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
language: node_js
node_js:
- '8'
cache:
directories:
- node_modules
env:
- VUE_APP_NODE_URL='https://roma-net.mdw.aepps.com/'
install:
- travis_wait npm install
script:
- npm run test
- npm run build
deploy:
- provider: script
skip_cleanup: true
script: rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/explorer.aepps.com/
on:
branch: explorer
- provider: script
skip_cleanup: true
script: rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/stage-explorer.aepps.com/
on:
branch: stage
- provider: script
skip_cleanup: true
script: rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/integration-explorer.aepps.com/
on:
branch: integration-explorer
- provider: script
skip_cleanup: true
script: rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/sdk-testnet-explorer.aepps.com/
on:
branch: sdk-testnet-explorer
- provider: script
skip_cleanup: true
script: rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/republica-explorer.aepps.com/
on:
branch: republica-pos
- provider: script
skip_cleanup: true
script: ssh deploy@139.59.142.164 "mkdir -p /var/www/html/BRANCHES.explorer.aepps.com/`echo $TRAVIS_BRANCH | tr '[:punct:]' '-'`/" && rsync -r --delete-after -v $TRAVIS_BUILD_DIR/dist/* deploy@139.59.142.164:/var/www/html/BRANCHES.explorer.aepps.com/`echo $TRAVIS_BRANCH | tr '[:punct:]' '-'`
on:
all_branches: true
before_deploy:
- openssl aes-256-cbc -K $encrypted_90a9ca14a0f9_key -iv $encrypted_90a9ca14a0f9_iv
-in deploy.enc -out deploy -d
- eval "$(ssh-agent -s)"
- chmod 600 deploy
- ssh-add deploy
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config