Commit a07002f1 by John Jarvis

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

changing from ubuntu package to pip
parents e7b00157 5185ed58
...@@ -3,8 +3,9 @@ language: python ...@@ -3,8 +3,9 @@ language: python
python: python:
- "2.7" - "2.7"
install: install:
- "pip install --allow-all-external -r requirements.txt"
- "sudo apt-get install -y npm python-demjson" - "sudo apt-get install -y npm python-demjson"
- "pip install --allow-all-external -r requirements.txt"
- "pip install --allow-all-external demjson"
- "sudo npm install -g js-yaml" - "sudo npm install -g js-yaml"
script: script:
- | - |
...@@ -17,7 +18,7 @@ script: ...@@ -17,7 +18,7 @@ script:
done done
- | - |
for json in $(find . -name "*.json"); do for json in $(find . -name "*.json"); do
jsonlint $json jsonlint -v $json
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
echo "ERROR parsing $json" echo "ERROR parsing $json"
exit 1 exit 1
......
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