Skip to content

Instantly share code, notes, and snippets.

@dhepper
Created February 27, 2012 10:10
Show Gist options
  • Save dhepper/1922945 to your computer and use it in GitHub Desktop.
Save dhepper/1922945 to your computer and use it in GitHub Desktop.
Poor man's CI
#!/bin/sh
touch -t 197001010101 .last_run
while `true`
do
if [ ! -z "`find . -name \"*.py\" -cnewer .last_run 2>/dev/null`" ] ; then
django-admin.py test main
touch .last_run
fi
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment