38 строки
803 B
Bash
Executable File
38 строки
803 B
Bash
Executable File
# This script should be called from within Hudson
|
|
|
|
cd $WORKSPACE
|
|
VENV=$WORKSPACE/venv
|
|
|
|
echo "Starting build on executor $EXECUTOR_NUMBER..." `date`
|
|
|
|
if [ -z $1 ]; then
|
|
echo "Warning: You should provide a unique name for this job to prevent database collisions."
|
|
echo "Usage: ./build.sh <name>"
|
|
echo "Continuing, but don't say you weren't warned."
|
|
fi
|
|
|
|
echo "Setup..." `date`
|
|
|
|
# Make sure there's no old pyc files around.
|
|
find . -name '*.pyc' | xargs rm
|
|
|
|
if [ ! -d "$VENV/bin" ]; then
|
|
echo "No virtualenv found. Making one..."
|
|
virtualenv $VENV
|
|
fi
|
|
|
|
source $VENV/bin/activate
|
|
|
|
pip install -q -r requirements.txt
|
|
|
|
git submodule sync -q
|
|
git submodule update --init
|
|
|
|
export SPIDERMONKEY_INSTALLATION=`which tracemonkey`
|
|
|
|
echo "Starting tests..." `date`
|
|
|
|
nosetests --with-xunit
|
|
|
|
echo 'shazam!'
|