Skip to content

Commit 082e0b5

Browse files
committed
.travis.yml: Add *.json file validation
1 parent c990d10 commit 082e0b5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ before_install:
3535
- travis_retry python3 -m pip install --user pexpect # imported by tools/ci.py
3636
- travis_retry python3 -m pip install --user requests # imported by tools/pr.py
3737
- travis_retry python3 -m pip install --user pygments
38+
- travis_retry sudo python3 -m pip install demjson # installs jsonlint => sudo required
3839

3940
matrix:
4041
# do notify immediately about it when a job of a build fails.
@@ -158,6 +159,8 @@ matrix:
158159
- make clean
159160
- make -j2 CXXFLAGS=-funsigned-char testrunner
160161
- ./testrunner TestSymbolDatabase
162+
# check .json files
163+
- find . -name '*.json' -not -path '*/\.*' | xargs jsonlint -s
161164

162165
# check if dmake needs to be rerun (this job may fail)
163166
- name: "rerun dmake?"

0 commit comments

Comments
 (0)