1234567891011121314151617181920212223242526272829303132 |
- include:
- - local: '/.gitlab/ci/rspec/mysql.yml'
- - local: '/.gitlab/ci/rspec/postgresql.yml'
- .template_rspec: &template_rspec
- extends:
- - .env_base
- - .variables_rspec_slicing
- script:
- - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_init[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:init"
- - bundle exec rake zammad:db:init
- - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_init\\r\\e[0K"
- - echo "RSpec filter:" "$RSPEC_EXAMPLE_MATCHES"
- - bundle exec rspec --require ./spec/rspec_extensions.rb --example-matches "$RSPEC_EXAMPLE_MATCHES" --exclude-pattern "spec/{system,integration}/**/*_spec.rb" -t ~searchindex --profile 10
- # RSpec 3rd party integration tests are independent of the database
- # therefore we need only one job and choose a random database for each run
- # Optionally pass INTEGRATION_TESTS=enabled to run them in private- branch
- rspec:integration:
- stage: test
- extends:
- - .env_base
- - .services_mysql_postgresql_redis_memcached
- - .rules_integration_manual_start
- variables:
- RAILS_ENV: "test"
- script:
- - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_init[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:init"
- - bundle exec rake zammad:db:init
- - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_init\\r\\e[0K"
- - bundle exec rspec -t type:integration --profile 10
|