DIR='/tmp/' GIT_LOCATION='https://[email protected]/tildesg/reconwisev1.git' VENV=$DIR/v_env_rw1
RW='reconwisev1' cd $DIR
rm -rf $VENV rm -rf $RW
echo "Removed $VENV and $RW folders from $DIR"
git clone $GIT_LOCATION echo "git clone complete"
cd $RW && git fetch && git checkout master && cd ../
echo "Git Retrieval complete. About to try virtual environment setup. Will take a while" echo "folder= $PWD"
virtualenv -p python3.4 $VENV
source $VENV/bin/activate which python && python --version
pip3.4 install -r $RW/requirements.txt
export PYTHONPATH=test/python/reconwisetestPy:main/python
cd $DIR/$RW/src/
mysql -u shippable < main/scripts/db_scripts.sql
Once you are in that path, the whole project is relative to this path (because of PYTHONPATH) so run the command from within that folder
py.test-3.4 test/python/reconwisetestPy/test.py --maxfail=3 -s --full-trace --tb=long