spaCy/travis.sh

33 lines
759 B
Bash
Raw Normal View History

#!/bin/bash
2016-10-14 23:10:33 +00:00
if [ "${VIA}" == "pypi" ]; then
rm -rf *
2017-09-04 17:49:35 +00:00
pip install spacy-nightly
2017-09-04 16:14:15 +00:00
python -m spacy download en
fi
2016-12-18 17:02:44 +00:00
if [[ "${VIA}" == "sdist" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
2016-10-14 23:10:33 +00:00
rm -rf *
2016-10-15 14:24:11 +00:00
pip uninstall spacy
2016-10-14 23:23:25 +00:00
wget https://api.explosion.ai/build/spacy/sdist/$TRAVIS_COMMIT
2016-10-14 23:36:32 +00:00
mv $TRAVIS_COMMIT sdist.tgz
2016-10-15 14:24:11 +00:00
pip install -U sdist.tgz
2016-10-14 23:10:33 +00:00
fi
2016-12-18 17:07:59 +00:00
if [ "${VIA}" == "compile" ]; then
pip install -r requirements.txt
2017-09-26 10:50:31 +00:00
python setup.py clean --all
2016-12-18 17:07:59 +00:00
pip install -e .
fi
# mkdir -p corpora/en
# cd corpora/en
# wget --no-check-certificate http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz
# tar -xzf WordNet-3.0.tar.gz
# mv WordNet-3.0 wordnet
# cd ../../
# mkdir models/
# python bin/init_model.py en lang_data/ corpora/ models/en
#fi