mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-10 01:52:04 +05:30
Migrate to the sentry.io. Add deployment step to inform Sentry about new release.
This commit is contained in:
parent
adf08ea8dd
commit
b58bd90de1
15
.travis.yml
15
.travis.yml
@ -13,13 +13,13 @@ addons:
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- GA_ID=UA-45299905-3
|
- GA_ID=UA-45299905-3
|
||||||
- SENTRY_CDN="https://088e7718236a4f91937a81fb319a93f6@sentry.ely.by/2"
|
- SENTRY_CDN="https://95461d4ce6734b088c34fc4272d0a9e6@sentry.io/1463318"
|
||||||
|
- VERSION="${TRAVIS_TAG:-${TRAVIS_BRANCH}-${TRAVIS_COMMIT:0:7}}"
|
||||||
|
|
||||||
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 "
|
echo "
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -43,6 +43,8 @@ before_deploy:
|
|||||||
- tar -zcf ../dist.tar.gz *
|
- tar -zcf ../dist.tar.gz *
|
||||||
- zip -rq ../dist.zip *
|
- zip -rq ../dist.zip *
|
||||||
- cd ..
|
- cd ..
|
||||||
|
# Install sentry-cli
|
||||||
|
- curl -sL https://sentry.io/get-cli/ | bash
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: releases
|
- provider: releases
|
||||||
@ -60,3 +62,12 @@ deploy:
|
|||||||
script: echo "put -r $TRAVIS_BUILD_DIR/dist/* accounts-frontend/" | sftp deploy@account.ely.by
|
script: echo "put -r $TRAVIS_BUILD_DIR/dist/* accounts-frontend/" | sftp deploy@account.ely.by
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
- provider: script
|
||||||
|
skip_cleanup: true
|
||||||
|
script: >
|
||||||
|
sentry-cli releases new -p $SENTRY_PROJECT $VERSION &&
|
||||||
|
sentry-cli releases set-commits --auto $VERSION &&
|
||||||
|
sentry-cli releases deploys $VERSION new -e "Production"
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
Loading…
Reference in New Issue
Block a user