Maintenance: Split RSpec db_strategy:reset specs into dedicated CI Job to decrease overall runtime.
This commit is contained in:
parent
36a0fc98a6
commit
058272dc82
3 changed files with 25 additions and 4 deletions
|
@ -9,7 +9,16 @@ include:
|
|||
RAILS_ENV: "test"
|
||||
script:
|
||||
- bundle exec rake zammad:db:init
|
||||
- bundle exec rspec -t ~type:system -t ~searchindex
|
||||
- bundle exec rspec -t ~type:system -t ~searchindex -t ~db_strategy:reset
|
||||
|
||||
.template_rspec_db_reset: &template_rspec_db_reset
|
||||
extends:
|
||||
- .env_base
|
||||
variables:
|
||||
RAILS_ENV: "test"
|
||||
script:
|
||||
- bundle exec rake zammad:db:init
|
||||
- bundle exec rspec -t ~type:system -t ~searchindex -t db_strategy:reset
|
||||
|
||||
# we need at least one job to store and include this template
|
||||
# $IGNORE is not defined
|
||||
|
|
|
@ -3,3 +3,9 @@ rspec:mysql:
|
|||
extends:
|
||||
- .services_mysql
|
||||
- .template_rspec
|
||||
|
||||
rspec:mysql:db_reset:
|
||||
stage: test
|
||||
extends:
|
||||
- .services_mysql
|
||||
- .template_rspec_db_reset
|
||||
|
|
|
@ -3,3 +3,9 @@ rspec:postgresql:
|
|||
extends:
|
||||
- .services_postgresql
|
||||
- .template_rspec
|
||||
|
||||
rspec:postgresql:db_reset:
|
||||
stage: test
|
||||
extends:
|
||||
- .services_postgresql
|
||||
- .template_rspec_db_reset
|
||||
|
|
Loading…
Reference in a new issue