From 043f8a4f935fb643898f64705853b2e2f3ab81bd Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 10 Mar 2019 23:22:31 +0300 Subject: [PATCH] Simplify stages setup. Setup deployment script --- .travis.yml | 32 ++++++++++++++++++++------------ deploy_rsa.enc | Bin 0 -> 3392 bytes 2 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 deploy_rsa.enc diff --git a/.travis.yml b/.travis.yml index 4c80169..23999f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,16 +4,24 @@ node_js: cache: yarn -jobs: - include: - - stage: Test - name: Lint - script: yarn lint - - name: Flow - script: yarn flow - - name: Test - script: yarn test +addons: + ssh_known_hosts: account.ely.by - - stage: Build - name: Build production assets - script: yarn build +script: + - yarn lint + - yarn flow + - yarn test + - yarn build:quiet + +before_deploy: + - openssl aes-256-cbc -K $encrypted_dd5ad7a5f201_key -iv $encrypted_dd5ad7a5f201_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d + - eval "$(ssh-agent -s)" + - chmod 600 /tmp/deploy_rsa + - ssh-add /tmp/deploy_rsa + +deploy: + provider: script + skip_cleanup: true + script: scp -rp $TRAVIS_BUILD_DIR/dist/* deploy@account.ely.by:/var/deploy/accounts-frontend/ + on: + branch: master diff --git a/deploy_rsa.enc b/deploy_rsa.enc new file mode 100644 index 0000000000000000000000000000000000000000..ed282b2b6988feb68d2ce4cb8fb4ab82d20e77d0 GIT binary patch literal 3392 zcmV-G4Zrdmv^S({uS-ewG9Qb69as**LQVN-Qn)wO=6>yd5+V2Bp(={1DyajkOsivUE@UnIs@bT8fVbd_exmX>A8HI)n)X+)?`jbE$sI;( zXa`tC6V?vU61Q(hysT%(O|-cWO4yDg=^J=pf~40y{dMgI--d>tTw5w4OZl`` zb^$y~zUWAJS(Bx=W1@WD?JC-T633f;0c(D*2M7zbYl!J=wbXL%J2D4BHj~!<)noP^ zdx?{6r~rS|9v2j(bYame>Q-(&;Lw2kNl}In0imV>S=oUl}J@u(eK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