diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index 647c66d..3d39211 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,19 @@ language: python -python: - - "2.7" - - "3.6" - install: - - ./.travis/install.sh + - | + if [[ $TRAVIS_OS_NAME == 'osx' ]]; then + # On OS X, we use the "generic" language and manually install Python so + # that we can specify the versions to test + curl -L raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash + export PATH=~/.pyenv/bin:$PATH + eval "$(pyenv init -)" + pyenv install --skip-existing $PYTHON_VERSION + pyenv global $PYTHON_VERSION + pyenv shell $PYTHON_VERSION + pip install -U pip setuptools wheel py + fi + pip install . script: - python test.py |