Update travis

pull/27/head
Raphaël Vinot 2017-02-13 11:25:39 +01:00
parent 05cd86087d
commit dae20c6697
2 changed files with 23 additions and 8 deletions

View File

@ -9,14 +9,8 @@ sudo: required
install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq jq
- sudo apt-get install -y -qq jq moreutils
- pip install jsonschema
script:
- |
for dir in lists/*/list.json
do
echo -n "${dir}: "
jsonschema -i ${dir} schema.json
echo ''
done
- ./validate_all.sh

21
validate_all.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -e
set -x
./jq_all_the_things.sh
diffs=`git status --porcelain | wc -l`
if ! [ $diffs -eq 0 ]; then
echo "Please make sure you run ./jq_all_the_things.sh before commiting."
exit 1
fi
for dir in lists/*/list.json
do
echo -n "${dir}: "
jsonschema -i ${dir} schema.json
echo ''
done