diff options
author | Everett Hildenbrandt <hildenb2@illinois.edu> | 2018-05-31 23:08:12 +0800 |
---|---|---|
committer | Everett Hildenbrandt <hildenb2@illinois.edu> | 2018-06-01 02:51:25 +0800 |
commit | 8137a8bbd0458dbdf912901abdea77127ddaf870 (patch) | |
tree | 3f346b3860bba02eae0f2525d939e57f23f4fa94 /.travis.yml | |
parent | 9b213d1e29353bc2f123177f33a412e6dbbc5c09 (diff) | |
download | tangerine-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar tangerine-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.gz tangerine-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.bz2 tangerine-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.lz tangerine-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.xz tangerine-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.zst tangerine-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.zip |
.travis.yml: format files using test.py and check no diff as test
this is quicker than the original find command which spun up a new python process each test
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index 26e0ce8b4..8f7f2d6a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,10 @@ branches: sudo: false install: "pip install jsonschema" script: -# won't fail, but print problems -- find . -name 'node_modules' -prune -o \( -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 'node_modules' -prune -o \( -name "*.json" -not -name "*Filler.json" -print0 \) | xargs -I file -n1 -0 python -mjson.tool file /dev/null + +# check valid JSON/well formatted +- python3 test.py format +- git diff --quiet &>/dev/null # check test schemas -- python3 test.py validate ./src/VMTestsFiller ./src/GeneralStateTestsFiller ./VMTests ./GeneralStateTests ./BlockchainTests +- python3 test.py validate ./src/VMTestsFiller ./src/GeneralStateTestsFiller ./src/BlockchainTestsFiller ./VMTests ./GeneralStateTests ./BlockchainTests |