aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2018-03-20 03:43:39 +0800
committerGitHub <noreply@github.com>2018-03-20 03:43:39 +0800
commita986dbd957f8dd502843fc15e11af59c7c6bc9b7 (patch)
tree81e36ed21aa8a931e9b1d2fd97302096384be228 /.travis.yml
parent6eb49bfaac55b7d77531d7a923fbdd013263d2bb (diff)
parent2f5f7b14cd2365b3f6579e0b5e69974cdb9b2e73 (diff)
downloaddexon-tests-a986dbd957f8dd502843fc15e11af59c7c6bc9b7.tar.gz
dexon-tests-a986dbd957f8dd502843fc15e11af59c7c6bc9b7.tar.zst
dexon-tests-a986dbd957f8dd502843fc15e11af59c7c6bc9b7.zip
Merge pull request #432 from pirapira/check-duplicate
Check duplicate keys in JSON objects during Travis run
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index f3d378022..84b8fa28a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,12 +8,12 @@ branches:
- master
- develop
sudo: false
-install: "npm install jsonschema"
+install: "npm install jsonschema json-duplicate-key-handle"
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
+- 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 "*.json" -not -name "*Filler.json" -print0 | xargs -I file -n1 -0 python -mjson.tool file /dev/null
+- find . -name 'node_modules' -prune -o \( -name "*.json" -not -name "*Filler.json" -print0 \) | xargs -I file -n1 -0 python -mjson.tool file /dev/null
# run schema tests against GeneralStateTests
- echo "Linting state tests"