test.sh 570 B

1234567891011121314151617181920212223
  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. pnpm test
  12. echo "Running basic rspec tests…"
  13. bundle exec rake zammad:db:init
  14. bundle exec rspec --exclude-pattern "spec/system/**/*_spec.rb" -t ~searchindex -t ~integration -t ~required_envs
  15. echo "Running basic minitest tests…"
  16. bundle exec rake zammad:db:reset
  17. bundle exec rake test:units