diff --git a/.travis.yml b/.travis.yml index e8f3196a..bbaa052a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,10 +26,10 @@ addons: before_install: # Determine whether we're using PyPy, as it determines which requirements # file we will use. - - if (python --version 2>&1 | grep PyPy > /dev/null); then export REQUIREMENTS=requirements-test-pypy.txt; else export REQUIREMENTS=requirements-test-cpython.txt; fi + - if [[ "$TRAVIS_PYTHON_VERSION" == "pypy" ]]; then export REQUIREMENTS=requirements-test-pypy.txt; else export REQUIREMENTS=requirements-test-cpython.txt; fi + - pip install --upgrade pip install: - - pip install --upgrade pip - pip install -r $REQUIREMENTS - pip install coveralls