Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
More fixes for new jenkins enviro
Browse files Browse the repository at this point in the history
  • Loading branch information
davedash committed Oct 20, 2011
1 parent ef2133e commit 1d04dad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
# codebase.
set -e

DB_HOST=sm-hudson01
DB_HOST="localhost"
DB_USER="hudson"

cd $WORKSPACE
VENV=$WORKSPACE/venv

echo "Starting build on executor $EXECUTOR_NUMBER..."

# Make sure there's no old pyc files around.
find . -name '*.pyc' | xargs rm
find . -name '*.pyc' -exec rm {} \;

if [ ! -d "$VENV/bin" ]; then
echo "No virtualenv found. Making one..."
Expand All @@ -35,7 +36,7 @@ pip install -q -r requirements/dev.txt
cat > settings/local.py <<SETTINGS
from settings.base import *
ROOT_URLCONF = '${JOB_NAME}.urls'
ROOT_URLCONF = 'workspace.urls'
LOG_LEVEL = logging.ERROR
# Database name has to be set because of sphinx
DATABASES = {
Expand All @@ -57,7 +58,7 @@ CELERY_ALWAYS_EAGER = True
SETTINGS

echo "Creating database if we need it..."
echo "CREATE DATABASE IF NOT EXISTS ${JOB_NAME}"|mysql -u root -h $DB_HOST
echo "CREATE DATABASE IF NOT EXISTS ${JOB_NAME}"|mysql -u $DB_USER -h $DB_HOST

echo "Starting tests..."
export FORCE_DB=1
Expand Down

0 comments on commit 1d04dad

Please sign in to comment.