|
@@ -20,24 +20,12 @@ include:
|
|
|
- bundle exec rake zammad:db:init
|
|
|
- bundle exec rspec --exclude-pattern "spec/{system,integration}/**/*_spec.rb" -t ~searchindex -t db_strategy:reset
|
|
|
|
|
|
-# RSpec 3rd party integration tests are independent of the database
|
|
|
-# therefore we need only one job and choose a random database for each run
|
|
|
-
|
|
|
-.rspec_integration_rules: &rspec_integration_rules
|
|
|
- rules:
|
|
|
- - if: $CI_MERGE_REQUEST_ID
|
|
|
- when: never
|
|
|
- - if: '$CI_COMMIT_BRANCH =~ /^private/ && $INTEGRATION_TESTS == null'
|
|
|
- when: manual
|
|
|
- allow_failure: true
|
|
|
- - when: on_success
|
|
|
-
|
|
|
rspec:integration:
|
|
|
stage: test
|
|
|
extends:
|
|
|
- .env_base
|
|
|
- .services_mysql_postgresql_redis_memcached
|
|
|
- - .rspec_integration_rules
|
|
|
+ - .rules_integration_manual_start
|
|
|
variables:
|
|
|
RAILS_ENV: "test"
|
|
|
script:
|