From cc34fee98980a143648c1a21bb18d707cbfb5fe2 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 21 Nov 2019 09:12:25 +0100 Subject: [PATCH] .travis.yml: Add *.json file validation (#2362) --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index eb1706c47..012bc160d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,7 @@ before_install: - travis_retry python3 -m pip install --user pexpect # imported by tools/ci.py - travis_retry python3 -m pip install --user requests # imported by tools/pr.py - travis_retry python3 -m pip install --user pygments + - travis_retry sudo python3 -m pip install demjson # installs jsonlint => sudo required matrix: # do notify immediately about it when a job of a build fails. @@ -158,6 +159,8 @@ matrix: - make clean - make -j2 CXXFLAGS=-funsigned-char testrunner - ./testrunner TestSymbolDatabase +# check .json files + - find . -name '*.json' -not -path '*/\.*' | xargs jsonlint -s # check if dmake needs to be rerun (this job may fail) - name: "rerun dmake?"