diff options
author | Jared Wasinger <j-wasinger@hotmail.com> | 2017-07-05 06:57:06 +0800 |
---|---|---|
committer | Ubuntu <ubuntu@ip-172-31-32-43.us-west-2.compute.internal> | 2017-08-08 04:41:46 +0800 |
commit | 7378b9fa4e883484af856df99a65c28293613e98 (patch) | |
tree | 8df91e08d40c45c1930df5482c34a3f6f7f17656 /.travis.yml | |
parent | 6e8afe6563febbf3f54ab0702aba7056eca762f0 (diff) | |
download | tangerine-tests-7378b9fa4e883484af856df99a65c28293613e98.tar tangerine-tests-7378b9fa4e883484af856df99a65c28293613e98.tar.gz tangerine-tests-7378b9fa4e883484af856df99a65c28293613e98.tar.bz2 tangerine-tests-7378b9fa4e883484af856df99a65c28293613e98.tar.lz tangerine-tests-7378b9fa4e883484af856df99a65c28293613e98.tar.xz tangerine-tests-7378b9fa4e883484af856df99a65c28293613e98.tar.zst tangerine-tests-7378b9fa4e883484af856df99a65c28293613e98.zip |
add schema validation with Travis integration.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index dbced1cd9..24267e38a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,11 @@ language: python python: 2.7 sudo: false +install: "pip install jsonschema" script: # won't fail, but print problems - find . -name "*.json" -not -name "*Filler.json" -exec echo {} \; -exec python -mjson.tool {} /dev/null \; 2>&1 | grep -v -B 1 "^\./" | cat # will fail, if linting fails - find . -name "*.json" -not -name "*Filler.json" -print0 | xargs -I file -n1 -0 python -mjson.tool file /dev/null +# run schema tests against GeneralStateTests +- echo "$(find GeneralStateTests -name '*.json' ! -path '../schema/*.json')" | python JSONSchema/validate.py |