Commit 3f535a3c by John Jarvis

Merge pull request #921 from edx/jarv/add-json-lint-to-travis

adding json lint check
parents 4b44b3ee 2bb878f0
...@@ -4,7 +4,7 @@ python: ...@@ -4,7 +4,7 @@ python:
- "2.7" - "2.7"
install: install:
- "pip install --allow-all-external -r requirements.txt" - "pip install --allow-all-external -r requirements.txt"
- "sudo apt-get install -y npm" - "sudo apt-get install -y npm python-demjson"
- "sudo npm install -g js-yaml" - "sudo npm install -g js-yaml"
script: script:
- | - |
...@@ -16,6 +16,14 @@ script: ...@@ -16,6 +16,14 @@ script:
fi fi
done done
- | - |
for json in $(find . -name "*.json"); do
jsonlint $json
if [[ $? -ne 0 ]]; then
echo "ERROR parsing $json"
exit 1
fi
done
- |
plays="aws bastion certs commoncluster common demo devpi discern edx_ansible edxapp elasticsearch forum ora rabbitmq worker xqueue xserver" plays="aws bastion certs commoncluster common demo devpi discern edx_ansible edxapp elasticsearch forum ora rabbitmq worker xqueue xserver"
set -e set -e
cd playbooks/edx-east cd playbooks/edx-east
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment