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