mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-12 14:52:23 +05:30
Fix build and deploy steps
This commit is contained in:
parent
043f8a4f93
commit
57e8304ea4
18
.travis.yml
18
.travis.yml
@ -7,10 +7,23 @@ cache: yarn
|
|||||||
addons:
|
addons:
|
||||||
ssh_known_hosts: account.ely.by
|
ssh_known_hosts: account.ely.by
|
||||||
|
|
||||||
|
env:
|
||||||
|
- GA_ID=UA-45299905-3
|
||||||
|
- SENTRY_CDN="https://088e7718236a4f91937a81fb319a93f6@sentry.ely.by/2"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- yarn lint
|
- yarn lint
|
||||||
- yarn flow
|
- yarn flow
|
||||||
- yarn test
|
- yarn test
|
||||||
|
- export VERSION="${TRAVIS_TAG:-${TRAVIS_BRANCH}-${TRAVIS_COMMIT:0:7}}"
|
||||||
|
- |
|
||||||
|
echo "
|
||||||
|
module.exports = {
|
||||||
|
version: '$VERSION',
|
||||||
|
ga: {id: '$GA_ID'},
|
||||||
|
sentryCdn: '$SENTRY_CDN',
|
||||||
|
};
|
||||||
|
" > config/env.js
|
||||||
- yarn build:quiet
|
- yarn build:quiet
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
@ -22,6 +35,9 @@ before_deploy:
|
|||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
script: scp -rp $TRAVIS_BUILD_DIR/dist/* deploy@account.ely.by:/var/deploy/accounts-frontend/
|
script: |
|
||||||
|
sftp deploy@account.ely.by << EOL
|
||||||
|
put -r $TRAVIS_BUILD_DIR/dist/* accounts-frontend/
|
||||||
|
EOL
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
|
Loading…
x
Reference in New Issue
Block a user