Skip to content

Instantly share code, notes, and snippets.

@powellc
Created February 25, 2013 06:11
Show Gist options
  • Select an option

  • Save powellc/5028074 to your computer and use it in GitHub Desktop.

Select an option

Save powellc/5028074 to your computer and use it in GitHub Desktop.
A building block for django app integrations with Jenkins
#!/bin/bash -ex
cd $WORKSPACE
virtualenv -q --no-site-packages --distribute venv
source venv/bin/activate
pip install -r etc/requirements.txt
ln -fs `pwd`/local_settings_template.py `pwd`/local_settings.py
python manage.py syncdb --noinput
python manage.py migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment