diff --git a/.travis.yml b/.travis.yml index e8d39cd5e..2098efb04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,4 +21,4 @@ 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 spacy; fi + - if [[ "${TRAVIS_PULL_REQUEST}" == "false" && "${VIA}" == "pip" ]]; then python -m pytest spacy; fi diff --git a/travis.sh b/travis.sh index 522700248..efd76c7c7 100755 --- a/travis.sh +++ b/travis.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ "${TRAVIS_PULL_REQUEST}" = "false" && "${VIA}" == "pypi"]; then +if [ "${TRAVIS_PULL_REQUEST}" == "false" && "${VIA}" == "pypi"]; then rm -rf * pip install spacy fi