Fix pytest discovery from sdist installation in travis

This commit is contained in:
Matthew Honnibal 2016-10-15 13:51:48 +02:00
parent 4a1a2bce68
commit 75529a9f3b
1 changed files with 2 additions and 2 deletions

View File

@ -22,5 +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 [[ "${VIA}" == "pip" ]]; then python -m pytest --pyargs spacy; fi - if [[ "${VIA}" == "pypi" ]]; then python -m pytest `python -c "import pathlib; import spacy; print(pathlib.Path(spacy.__file__).parent.resolve())"`; fi
- if [[ "${VIA}" == "sdist" ]]; then python -m pytest --pyargs spacy; fi - if [[ "${VIA}" == "sdist" ]]; then python -m pytest `python -c "import pathlib; import spacy; print(pathlib.Path(spacy.__file__).parent.resolve())"`; fi