test.sh 586 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. set -o errexit
  3. set -o pipefail
  4. # shellcheck disable=SC1091
  5. source /etc/profile.d/rvm.sh
  6. # shellcheck disable=SC1091
  7. source .gitlab/environment.env
  8. echo "Checking assets generation…"
  9. bundle exec rake assets:precompile
  10. echo "Running front end tests…"
  11. yarn test
  12. yarn test:ci:ct
  13. echo "Running basic rspec tests…"
  14. bundle exec rake zammad:db:init
  15. bundle exec rspec --exclude-pattern "spec/system/**/*_spec.rb" -t ~searchindex -t ~integration -t ~required_envs
  16. echo "Running basic minitest tests…"
  17. bundle exec rake zammad:db:reset
  18. bundle exec rake test:units