-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial work toward hudson build script
- Loading branch information
Showing
4 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,8 +1,14 @@ | |||
env/ | |||
venv/ | |||
tmp/ | tmp/ | ||
src/ | src/ | ||
site_media/ | site_media/ | ||
pip-log.txt | pip-log.txt | ||
local_settings.py | local_settings.py | ||
settings_local.py | |||
nosetests.xml | |||
.coverage | |||
coverage.xml | |||
*.pyc | *.pyc | ||
*.swp | *.swp | ||
*.db | *.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,37 @@ | |||
#!/bin/bash | |||
# This script should run from inside Hudson | |||
|
|||
cd $WORKSPACE | |||
VENV=$WORKSPACE/venv | |||
|
|||
echo "Starting build..." | |||
|
|||
# Clean up after last time. | |||
find . -name '*.pyc' | xargs rm | |||
|
|||
if [ ! -d "$VENV/bin" ]; then | |||
echo "No virtualenv found; making one..." | |||
virtualenv --no-site-packages $VENV | |||
fi | |||
|
|||
source $VENV/bin/activate | |||
|
|||
pip install -qr requirements/dev.txt | |||
|
|||
cat > settings_local.py <<SETTINGS | |||
import logging | |||
from settings import * | |||
LOG_LEVEL = logging.ERROR | |||
INSTALLED_APPS += [ "django_nose", ] | |||
SOUTH_TESTS_MIGRATE = False | |||
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' | |||
CACHE_BACKEND = 'locmem://' | |||
MAILER_EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' | |||
SETTINGS | |||
|
|||
echo "Starting tests..." | |||
export FORCE_DB=1 | |||
coverage run manage.py test apps/badges --noinput --with-freshen --with-xunit --tags=~@TODO -a\!TODO | |||
coverage xml $(find apps libs -name '*.py') | |||
|
|||
echo 'Mushroom mushroom!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.