You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update-fixtures.sh 392B

123456789101112131415
  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"