aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEverett Hildenbrandt <hildenb2@illinois.edu>2018-05-31 23:08:12 +0800
committerEverett Hildenbrandt <hildenb2@illinois.edu>2018-06-01 02:51:25 +0800
commit8137a8bbd0458dbdf912901abdea77127ddaf870 (patch)
tree3f346b3860bba02eae0f2525d939e57f23f4fa94
parent9b213d1e29353bc2f123177f33a412e6dbbc5c09 (diff)
downloaddexon-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar
dexon-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.gz
dexon-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.bz2
dexon-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.lz
dexon-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.xz
dexon-tests-8137a8bbd0458dbdf912901abdea77127ddaf870.tar.zst
dexon-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
-rw-r--r--.travis.yml10
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