Created
July 14, 2011 15:54
-
-
Save adamcharnock/1082723 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
# Setup node-jshint and run it | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
curl http://npmjs.org/install.sh | sudo clean=no sh | |
sudo npm install -g jshint | |
JS_DIR="public" | |
files=`find $JS_DIR -name "*.js" | grep -v "min.js" | grep -v "/vendor/" | xargs` | |
jshint $files --jslint-reporter > jslint.xml | |
curl --data-binary @jslint.xml $BUNDLE_ROOT_URL/buildservices/build/$BUILD_ID/jslint/?secret=$BUILD_SECRET > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment