aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 0d54f3211d793294864a361bdb5fb75c1ec4f6ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
language: python
python: 
  - "2.7"
node_js: 
  - "7"
sudo: false
install: "npm install jsonschema"
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
# will fail, if linting fails
- find . -name "*.json" -not -name "*Filler.json" -print0 | xargs -I file -n1 -0 python -mjson.tool file /dev/null 
# run schema tests against GeneralStateTests
- echo -e "$(find GeneralStateTests -name '*.json' ! -path 'JSONSchema/schema.json')" | node JSONSchema/validate.js