From e4a372066ba74709a02fbd003935989089e20425 Mon Sep 17 00:00:00 2001 From: Alastair Houghton Date: Mon, 12 Feb 2018 11:48:05 +0000 Subject: More work on getting Travis working - OS X is complicated. --- .travis.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to '.travis.yml') 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 -- cgit v1.2.1