rspec.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. include:
  2. - '.gitlab/ci/test/rspec/*.yml'
  3. .template_rspec:
  4. stage: test
  5. extends:
  6. - .job_rules_default
  7. - .variables_proxy
  8. script:
  9. - !reference [.scripts, zammad_db_init]
  10. - bundle exec rspec --require ./spec/rspec_extensions.rb --exclude-pattern "spec/system/**/*_spec.rb" -t ~searchindex -t ~integration --profile 10
  11. # RSpec 3rd party integration tests are independent of the database
  12. # therefore we need only one job and choose a random database for each run
  13. # Optionally pass INTEGRATION_TESTS=enabled to run them in private- branch
  14. rspec:integration:
  15. stage: test
  16. extends:
  17. - .job_rules_default
  18. - .job_rules_integration
  19. - .variables_proxy
  20. - .variables_mattermost
  21. - .variables_ftp
  22. - .variables_s3
  23. allow_failure: true
  24. services:
  25. - !reference [.services, mysql]
  26. - !reference [.services, postgresql]
  27. - !reference [.services, imap]
  28. - !reference [.services, redis]
  29. - !reference [.services, memcached]
  30. - !reference [.services, proxy]
  31. - !reference [.services, ftp]
  32. - !reference [.services, mattermost]
  33. - !reference [.services, ldap]
  34. - !reference [.services, s3]
  35. script:
  36. - !reference [.scripts, zammad_db_init]
  37. - bundle exec rspec --exclude-pattern "spec/system/**/*_spec.rb" -t integration -t ~integration_standalone --profile 10