Skip to content

Instantly share code, notes, and snippets.

@adamcharnock
Created July 14, 2011 15:54
Show Gist options
  • Save adamcharnock/1082723 to your computer and use it in GitHub Desktop.
Save adamcharnock/1082723 to your computer and use it in GitHub Desktop.
#!/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