aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaaktweluit <maaktweluit@gmail.com>2017-06-06 03:22:40 +0800
committerGitHub <noreply@github.com>2017-06-06 03:22:40 +0800
commita43001b9716b3c72092bd310ccf141aa8d7d7244 (patch)
tree6ac58521b1d1cbb6a15247f5c12f1a73477253f1
parent7a624724954e5b4c06d4ae6e3ecda3123aedca1b (diff)
downloaddexon-tests-a43001b9716b3c72092bd310ccf141aa8d7d7244.tar
dexon-tests-a43001b9716b3c72092bd310ccf141aa8d7d7244.tar.gz
dexon-tests-a43001b9716b3c72092bd310ccf141aa8d7d7244.tar.bz2
dexon-tests-a43001b9716b3c72092bd310ccf141aa8d7d7244.tar.lz
dexon-tests-a43001b9716b3c72092bd310ccf141aa8d7d7244.tar.xz
dexon-tests-a43001b9716b3c72092bd310ccf141aa8d7d7244.tar.zst
dexon-tests-a43001b9716b3c72092bd310ccf141aa8d7d7244.zip
Update travis.yml with Filler exclude
- Excluded *Filler.json from checking - Excluded *Filler.json from linting - Updated check output to print all "lines not starting with "./" and the line before" containing the affected file and error close together.
-rw-r--r--.travis.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index e35fba889..68749e554 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,6 @@ python: 2.7
sudo: false
script:
# won't fail, but print problems
-- find . -name "*.json" -exec echo {} \; -exec python -mjson.tool {} /dev/null \; 2>&1 |grep --before 1 "Expecting" | cat
+- find . -name "*.json" -not -name "*Filler.json" -exec echo {} \; -exec python -mjson.tool {} /dev/null \; 2>&1 |grep -v -B 1 "^\./"
# will fail, if linting fails
-- find . -name "*.json" -print0 | xargs -I file -n1 -0 python -mjson.tool file /dev/null
+- find . -name "*.json" -not -name "*Filler.json" -print0 | xargs -I file -n1 -0 python -mjson.tool file /dev/null