.overcommit.sh 399 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. set -eu
  3. # Don't require redis.
  4. export ZAMMAD_SAFE_MODE=1
  5. echo "Checking .pot catalog consistency…"
  6. rails generate zammad:translation_catalog --check &
  7. echo "Checking consistency of Settings types file…"
  8. rails generate zammad:setting_types --check &
  9. .gitlab/check_graphql_api_consistency.sh &
  10. FAILED=0
  11. for job in $(jobs -p)
  12. do
  13. wait "$job" || (( FAILED+=1 ))
  14. done
  15. exit $FAILED