mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-25 22:50: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:
|
||||
global:
|
||||
- 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:
|
||||
- yarn lint
|
||||
- yarn flow
|
||||
- yarn test
|
||||
- export VERSION="${TRAVIS_TAG:-${TRAVIS_BRANCH}-${TRAVIS_COMMIT:0:7}}"
|
||||
- |
|
||||
echo "
|
||||
module.exports = {
|
||||
@ -43,6 +43,8 @@ before_deploy:
|
||||
- tar -zcf ../dist.tar.gz *
|
||||
- zip -rq ../dist.zip *
|
||||
- cd ..
|
||||
# Install sentry-cli
|
||||
- curl -sL https://sentry.io/get-cli/ | bash
|
||||
|
||||
deploy:
|
||||
- provider: releases
|
||||
@ -60,3 +62,12 @@ deploy:
|
||||
script: echo "put -r $TRAVIS_BUILD_DIR/dist/* accounts-frontend/" | sftp deploy@account.ely.by
|
||||
on:
|
||||
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