From 75529a9f3be6eb52cbb150670617e057e117f6a8 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 15 Oct 2016 13:51:48 +0200 Subject: [PATCH] Fix pytest discovery from sdist installation in travis --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 526231d46..18bd1a842 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,5 +22,5 @@ install: script: - "pip install pytest" - 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}" == "sdist" ]]; 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 `python -c "import pathlib; import spacy; print(pathlib.Path(spacy.__file__).parent.resolve())"`; fi