Re-add missing travis.sh for now

This commit is contained in:
Ines Montani 2019-03-09 03:18:11 +01:00
parent a145bfe627
commit d59f8cff29
1 changed files with 22 additions and 0 deletions

22
travis.sh Normal file
View File

@ -0,0 +1,22 @@
#!/bin/bash
if [ "${VIA}" == "pypi" ]; then
rm -rf *
pip install spacy-nightly
python -m spacy download en
fi
if [[ "${VIA}" == "sdist" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
rm -rf *
pip uninstall spacy
wget https://api.explosion.ai/build/spacy/sdist/$TRAVIS_COMMIT
mv $TRAVIS_COMMIT sdist.tgz
pip install -U sdist.tgz
fi
if [ "${VIA}" == "compile" ]; then
pip install -r requirements.txt
python setup.py build_ext --inplace
pip install -e .
fi