Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (18 sloc) 0.447 kb
#!/bin/bash
statusFile="build/last_status"
oldStatus=`cat $statusFile`
node node_modules/.bin/jake $*
if [ $? = 0 ]; then
newStatus="PASS"
else
newStatus="FAIL"
fi
echo $newStatus > $statusFile
if [ "$oldStatus" != "$newStatus" ]; then
git commit -a -m "Autocommit: Build state toggled to $newStatus"
gitStatus=`git status --porcelain`
if [ "$gitStatus" != "" ]; then
echo
echo "!! WARNING: Uncommitted files; use 'git add'"
fi
fi
Jump to Line
Something went wrong with that request. Please try again.