Files
catalyst/jenkins.sh
T

29 lines
622 B
Bash
Executable File

#!/bin/bash
if [ -n "${VAR:-x}" ]; then
WORKSPACE=.
fi
echo $WORKSPACE
PYENV_HOME=$WORKSPACE/.pyenv/
#leaving the old build in place because it takes >20 minutes to compile everything
# Delete previously built virtualenv
#if [ -d $PYENV_HOME ]; then
# rm -rf $PYENV_HOME
#fi
# Create virtualenv and install necessary packages
virtualenv --no-site-packages $PYENV_HOME
. $PYENV_HOME/bin/activate
./ordered_pip.sh $WORKSPACE/requirements.txt
./ordered_pip.sh $WORKSPACE/requirements_dev.txt
cp /mnt/jenkins/host_settings.py ./
#setup the local mongodb
python dev_setup.py
#run all the tests in test
nosetests