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:
- VIA="pypi"
- VIA="compile"
- VIA="sdist"
install:
- "./travis.sh"
@ -21,4 +22,5 @@ install:
script:
- "pip install pytest"
- 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
if [ "${TRAVIS_PULL_REQUEST}" == "false" && "${VIA}" == "pypi" ]; then
if [ "${VIA}" == "pypi" ]; then
rm -rf *
pip install spacy
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
pip install -r requirements.txt