Files
catalyst/scripts/jenkins.sh
T
2012-02-07 23:21:14 -05:00

35 lines
895 B
Bash
Executable File

#!/bin/bash
#setup virtualenvironment
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
if [ ! -d $HOME/.venvs ]; then
mkdir $HOME/.venvs
fi
export WORKON_HOME=$HOME/.venvs
source /usr/local/bin/virtualenvwrapper.sh
#create the scientific python virtualenv and copy to provide qsim base
mkvirtualenv --no-site-packages scientific_base
workon scientific_base
./scripts/ordered_pip.sh ./scripts/requirements_sci.txt
deactivate
#re-base qsim
#rmvirtualenv qsim
cpvirtualenv scientific_base qsim
workon qsim
./scripts/ordered_pip.sh ./scripts/requirements.txt
./scripts/ordered_pip.sh ./scripts/requirements_dev.txt
#setup the local mongodb
python ./dev_setup.py
#run all the tests in test
nosetests --with-xcoverage --with-xunit --cover-erase --cover-package=qsim
pylint -f parseable . | tee pylint.out
#run sloccount analysis
sloccount --wide --details ./ > sloccount.sc
deactivate