unit.yml 622 B

123456789101112131415161718192021222324252627
  1. .template_unit:
  2. extends:
  3. - .job_rules_default
  4. variables:
  5. # Teach minitest to output information about the slowest tests
  6. TESTOPTS: '--profile'
  7. script:
  8. - !reference [.scripts, zammad_db_init]
  9. - bundle exec rake test:units
  10. unit:mysql:
  11. stage: test
  12. extends:
  13. - .template_unit
  14. services:
  15. - !reference [.services, mysql]
  16. - !reference [.services, redis]
  17. - !reference [.services, memcached]
  18. unit:postgresql:
  19. stage: test
  20. extends:
  21. - .template_unit
  22. services:
  23. - !reference [.services, postgresql]
  24. - !reference [.services, redis]
  25. - !reference [.services, memcached]