chg: [validation] improve validation script

pull/200/head
Christophe Vandeplas 2019-08-08 11:45:29 +02:00
parent 5f7f4b8e50
commit 6a852e49e8
1 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@ set -x
diffs=`git status --porcelain | wc -l` diffs=`git status --porcelain | wc -l`
if ! [ $diffs -eq 0 ]; then if ! [ $diffs -eq 0 ]; then
echo "Please make sure you run ./jq_all_the_things.sh before commiting." echo "ERROR: Please make sure you run ./jq_all_the_things.sh before doing a PR."
exit 1 exit 1
fi fi
@ -18,7 +18,7 @@ find -name "*.json" -exec chmod -x "{}" \;
diffs=`git status --porcelain | wc -l` diffs=`git status --porcelain | wc -l`
if ! [ $diffs -eq 0 ]; then if ! [ $diffs -eq 0 ]; then
echo "Please make sure you run remove the executable flag on the json files before commiting: find -name "*.json" -exec chmod -x \"{}\" \\;" echo "ERROR: Please make sure you run remove the executable flag on the json files before doing a PR: find -name "*.json" -exec chmod -x \"{}\" \\;"
exit 1 exit 1
fi fi
@ -33,3 +33,5 @@ done
jsonschema -i relationships/definition.json schema_relationships.json jsonschema -i relationships/definition.json schema_relationships.json
./unique_uuid.py ./unique_uuid.py
echo "Success: All is fine, please go ahead.".