Try testing sdist built on server.

This commit is contained in:
Matthew Honnibal 2016-10-15 01:10:33 +02:00
parent 6d8cb515ac
commit 7b51990f3a
2 changed files with 10 additions and 2 deletions

View File

@ -14,6 +14,7 @@ os:
env: env:
- VIA="pypi" - VIA="pypi"
- VIA="compile" - VIA="compile"
- VIA="sdist"
install: install:
- "./travis.sh" - "./travis.sh"
@ -21,4 +22,5 @@ install:
script: script:
- "pip install pytest" - "pip install pytest"
- if [[ "${VIA}" == "compile" ]]; then SPACY_DATA=models/en python -m pytest spacy; fi - if [[ "${VIA}" == "compile" ]]; then SPACY_DATA=models/en python -m pytest spacy; fi
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" && "${VIA}" == "pip" ]]; then python -m pytest spacy; fi - if [[ "${VIA}" == "pip" ]]; then python -m pytest spacy; fi
- if [[ "${VIA}" == "sdist" ]]; then python -m pytest spacy; fi

View File

@ -1,10 +1,16 @@
#!/bin/bash #!/bin/bash
if [ "${TRAVIS_PULL_REQUEST}" == "false" && "${VIA}" == "pypi" ]; then if [ "${VIA}" == "pypi" ]; then
rm -rf * rm -rf *
pip install spacy pip install spacy
fi fi
if [ "${VIA}" == "sdist" ]; then
rm -rf *
wget https://api.explosion.ai/build/spaCy/$TRAVIS_COMMIT spacy.tgz
pip install spacy.tgz
fi
if [ "${VIA}" == "compile" ]; then if [ "${VIA}" == "compile" ]; then
pip install -r requirements.txt pip install -r requirements.txt