Skip to content

Commit

Permalink
Update travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Feb 13, 2017
1 parent 05cd860 commit dae20c6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 21 additions & 0 deletions validate_all.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dae20c6

Please sign in to comment.