mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
get buildbot running
This commit is contained in:
parent
6a266dbf6f
commit
4ab97c477a
37
build.sh
37
build.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user