update-fixtures.sh 392 B

12345678910111213141516
  1. #!/bin/bash
  2. set -eu -o pipefail
  3. dir=$(git rev-parse --show-toplevel)
  4. scratch=$(mktemp -d -t tmp.XXXXXXXXXX)
  5. function finish {
  6. rm -rf "$scratch"
  7. }
  8. trap finish EXIT SIGHUP SIGINT SIGTERM
  9. cd "$scratch"
  10. git clone https://github.com/json-schema-org/JSON-Schema-Test-Suite Suite
  11. cp -r Suite/tests/draft4/* "$dir/fixtures/jsonschema_suite"
  12. cp -a Suite/remotes "$dir/fixtures/jsonschema_suite"