unit.yml 755 B

1234567891011121314151617181920212223242526
  1. include:
  2. - local: '/.gitlab/ci/unit/mysql.yml'
  3. - local: '/.gitlab/ci/unit/postgresql.yml'
  4. .template_unit: &template_unit
  5. extends:
  6. - .env_base
  7. variables:
  8. RAILS_ENV: "test"
  9. script:
  10. - echo -e "\\e[0Ksection_start:`date +%s`:zammad_db_init[collapsed=true]\\r\\e[0Kbundle exec rake zammad:db:init"
  11. - bundle exec rake zammad:db:init
  12. - echo -e "\\e[0Ksection_end:`date +%s`:zammad_db_init\\r\\e[0K"
  13. - bundle exec rake test:units
  14. - bundle exec rails test test/integration/object_manager_test.rb
  15. - bundle exec rails test test/integration/package_test.rb
  16. # we need at least one job to store and include this template
  17. # $IGNORE is not defined
  18. ignore:
  19. stage: test
  20. only:
  21. variables:
  22. - $IGNORE
  23. script:
  24. - ''