aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-08-26 17:03:18 +0800
committerGitHub <noreply@github.com>2017-08-26 17:03:18 +0800
commitd0ef9b002c852e32839deaa920655bcd23e6b088 (patch)
tree6721c35f5eecdc8f8da232c1c9d899cb0d70d42a /.travis.yml
parentc13e6f13f9bcb77478984e7bd769c04cf89e8e31 (diff)
parent3a5814d7750f33a4b9fc2e1458eb017e2c8cfb01 (diff)
downloaddexon-tests-d0ef9b002c852e32839deaa920655bcd23e6b088.tar
dexon-tests-d0ef9b002c852e32839deaa920655bcd23e6b088.tar.gz
dexon-tests-d0ef9b002c852e32839deaa920655bcd23e6b088.tar.bz2
dexon-tests-d0ef9b002c852e32839deaa920655bcd23e6b088.tar.lz
dexon-tests-d0ef9b002c852e32839deaa920655bcd23e6b088.tar.xz
dexon-tests-d0ef9b002c852e32839deaa920655bcd23e6b088.tar.zst
dexon-tests-d0ef9b002c852e32839deaa920655bcd23e6b088.zip
Merge pull request #268 from ethereum/bc-schema
Add blockchain test linting
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index d9d7c58fb..e223fbc3c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,12 @@ script:
- 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 -e "$(find GeneralStateTests -name '*.json')" | node JSONSchema/validate.js JSONSchema/schema.json
-- echo -e "$(find src/GeneralStateTestsFiller -name '*.json')" | node JSONSchema/validate.js JSONSchema/filler-schema.json \ No newline at end of file
+- echo "Linting state tests"
+- echo -e "$(find GeneralStateTests -name '*.json')" | node JSONSchema/validate.js JSONSchema/st-schema.json
+- echo -e "$(find src/GeneralStateTestsFiller -name '*.json')" | node JSONSchema/validate.js JSONSchema/st-filler-schema.json
+
+# run schema tests against BlockchainTests
+- echo "Linting blockchain tests"
+- echo -e "$(find BlockchainTests -name '*.json')" | node JSONSchema/validate.js JSONSchema/bc-schema.json