4d6a578d |
#!/bin/bash
|
011ca71b |
SCRIPTS_DIR="$(dirname ${0})"
|
4d6a578d |
# Sanify check for all json files.
echo "Sanity check for all json files..." |
011ca71b |
while read f; do
echo "Checking:${f}"
if ! json_pp -t null < "${f}" >& /dev/null; then
echo "Please check:${f} for syntax errors"
exit 1
fi
done < <(find "${SCRIPTS_DIR}/../" -name "*.json" -type f -not -path "*stage*") |
4d6a578d |
echo "Checking all python code is compilable..." |
011ca71b |
while read f; do
echo "Checking:${f}"
if ! python -m py_compile "${f}"; then
echo "Please check:${f} for complitation errors"
exit 1
fi
done < <(find "${SCRIPTS_DIR}/../" -name "*.py" -type f -not -path "*stage*") |