Skip to content

Instantly share code, notes, and snippets.

@winhamwr
Created June 11, 2010 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winhamwr/435108 to your computer and use it in GitHub Desktop.
Save winhamwr/435108 to your computer and use it in GitHub Desktop.
Hudson: Run unittests
#!/bin/bash
# http://gist.github.com/435108
source $WORKSPACE/../../../virtualenvs/$JOB_NAME/bin/activate
./scripts/clean.sh;
echo "CREATE DATABASE IF NOT EXISTS $JOB_NAME DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;" | mysql -u root;
echo "DROP DATABASE IF EXISTS test_$JOB_NAME;" | mysql -u root;
rm --force #WORKSPACE/pstat/nosetests.xml;
python scripts/run_tests.py --coverage --django-sqlite;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment