Replace TravisCI with GitLab CI (#16)

* Add gitlab-ci configuration

* Attempt to fix cypress binary installation cache

* Even more improve caching, add wait-on step to ensure, that web server is ready to run cypress

* Exclude cache directory from linting

* Do not cache yarn's global cache to reduce the size of the cache to upload

* Disable Sentry for e2e tests, enable parallelization for cypress

* Store build artifacts

* Add dev deployment stage

* Try to fix commits association

* Fix sentry-cli param name

* Disable host checking for rsync

* Disable host checking via ssh config

* Add production deployment step

* Fix deployment Sentry notifying, allow performing auto deployment with special commit message

* Make autodeploy [deploy]

* Cleanup test branch refs

* Remove environment definition. Detect it based on the domain name

* Store cache for E2E tests separately
This commit is contained in:
ErickSkrauch
2020-01-15 17:57:27 +03:00
committed by GitHub
parent 4b71e8b12e
commit 0281c55463
12 changed files with 272 additions and 79 deletions

View File

@@ -11,7 +11,10 @@ class Logger {
Raven.config(sentryDSN, {
logger: 'accounts-js-app',
level: 'info',
environment: process.env.APP_ENV,
environment:
window.location.host === 'account.ely.by'
? 'Production'
: 'Development',
release: process.env.__VERSION__,
shouldSendCallback: () => !isTest,
dataCallback: data => {