get buildbot running

This commit is contained in:
Henning Peters 2015-12-15 15:09:24 +01:00
parent 6a266dbf6f
commit 4ab97c477a
1 changed files with 32 additions and 5 deletions

View File

@ -1,8 +1,35 @@
#!/bin/bash
#!/bin/bash -x
set -e
if [[ $# < 3 ]]; then
echo "usage: $0 <python-path> <pip-date> <install-mode>"
exit
fi
if [ ! -d ".build" ]; then
virtualenv .build
virtualenv .build --python $1
fi
. .build/bin/activate
pip install -U -r requirements.txt
pip install -U tox
python -m tox $@
# install
pip install -U pip
python pip-date.py $2 pip setuptools wheel six
pip install -r requirements.txt
if [[ "$3" == "pip" ]]; then
python setup.py sdist;
pip install dist/*;
fi
if [[ "$3" == "setup-install" ]]; then
python setup.py install;
fi
if [[ "$3" == "setup-develop" ]]; then
python setup.py develop;
pip install -e .;
fi
pip install pytest
pip list
# script
mkdir tmp; cd tmp
python -m spacy.en.download
python -m pytest ../spacy/ -x --models --vectors --slow