Maintenance: Use dedicated docker mail server for email integration tests to prevent race condition between different CI jobs.
This commit is contained in:
parent
81d804576b
commit
0a85b079ca
3 changed files with 14 additions and 1 deletions
|
@ -33,6 +33,12 @@ variables:
|
||||||
MAILBOX_INIT: "zammad@mail.test.dc.zammad.com:zammad"
|
MAILBOX_INIT: "zammad@mail.test.dc.zammad.com:zammad"
|
||||||
MAIL_ADDRESS: "zammad@mail.test.dc.zammad.com"
|
MAIL_ADDRESS: "zammad@mail.test.dc.zammad.com"
|
||||||
MAIL_PASS: "zammad"
|
MAIL_PASS: "zammad"
|
||||||
|
# docker-imap-devel variables required for integration tests
|
||||||
|
MAIL_SERVER: "mail"
|
||||||
|
MAIL_SERVER_ACCOUNT: "zammad@mail.test.dc.zammad.com:zammad"
|
||||||
|
MAIL_SERVER_EMAIL: "zammad@mail.test.dc.zammad.com"
|
||||||
|
KEEP_ON_MAIL_SERVER: "mail"
|
||||||
|
KEEP_ON_MAIL_SERVER_ACCOUNT: "zammad@mail.test.dc.zammad.com:zammad"
|
||||||
|
|
||||||
# Cache gems in between jobs and pipelines
|
# Cache gems in between jobs and pipelines
|
||||||
# ATTENTION: We use a combination of the Ruby major and minor version number
|
# ATTENTION: We use a combination of the Ruby major and minor version number
|
||||||
|
|
|
@ -86,6 +86,12 @@
|
||||||
- <<: *docker_postgresql
|
- <<: *docker_postgresql
|
||||||
- <<: *docker_selenium
|
- <<: *docker_selenium
|
||||||
|
|
||||||
|
.services_mysql_postgresql_imap: &services_mysql_postgresql_imap
|
||||||
|
services:
|
||||||
|
- <<: *docker_mysql
|
||||||
|
- <<: *docker_postgresql
|
||||||
|
- <<: *docker_imap
|
||||||
|
|
||||||
.services_mysql_postgresql_elasticsearch: &services_mysql_postgresql_elasticsearch
|
.services_mysql_postgresql_elasticsearch: &services_mysql_postgresql_elasticsearch
|
||||||
variables:
|
variables:
|
||||||
ELASTICSEARCH_TAG: 'stable'
|
ELASTICSEARCH_TAG: 'stable'
|
||||||
|
|
|
@ -2,6 +2,7 @@ email_helper_deliver:
|
||||||
extends:
|
extends:
|
||||||
- .template_integration
|
- .template_integration
|
||||||
- .tags_mail
|
- .tags_mail
|
||||||
|
- .services_mysql_postgresql_imap
|
||||||
script:
|
script:
|
||||||
- bundle exec rake zammad:db:unseeded
|
- bundle exec rake zammad:db:unseeded
|
||||||
- bundle exec rails test test/integration/email_helper_test.rb
|
- bundle exec rails test test/integration/email_helper_test.rb
|
||||||
|
|
Loading…
Reference in a new issue