2020-05-06 09:32:26 +00:00
|
|
|
include:
|
|
|
|
- local: '/.gitlab/ci/rspec/mysql.yml'
|
|
|
|
- local: '/.gitlab/ci/rspec/postgresql.yml'
|
|
|
|
|
|
|
|
.template_rspec: &template_rspec
|
|
|
|
extends:
|
|
|
|
- .env_base
|
|
|
|
variables:
|
|
|
|
RAILS_ENV: "test"
|
|
|
|
script:
|
|
|
|
- bundle exec rake zammad:db:init
|
2020-09-16 12:43:04 +00:00
|
|
|
- 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
|
2020-05-06 09:32:26 +00:00
|
|
|
|
|
|
|
# we need at least one job to store and include this template
|
|
|
|
# $IGNORE is not defined
|
|
|
|
ignore:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $IGNORE
|
|
|
|
script:
|
2020-09-16 12:43:04 +00:00
|
|
|
- ''
|