From 2f5f7b14cd2365b3f6579e0b5e69974cdb9b2e73 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Mon, 19 Mar 2018 17:26:44 +0100 Subject: Do not check files in node_modules --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index db91ed687..84b8fa28a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,9 +11,9 @@ sudo: false 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" -- cgit