From 1caeb8d78925df57c8feb02431e2f2be7e9d47e1 Mon Sep 17 00:00:00 2001 From: Dean Moldovan Date: Wed, 13 Sep 2017 21:45:49 +0200 Subject: [PATCH] Fix Travis style/docs/pip build When Travis changes their default Python 3.x, it breaks any hardcoded version selection. Fix: make pyenv activate everything (2.7, 3.x) and use whichever Python 3.x is on by default. [skip appveyor] --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 72ceaafd..2853ac7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,8 +13,8 @@ matrix: env: STYLE DOCS PIP cache: false before_install: - - pyenv global system 2.7 3.6 - - PY_CMD=python3.6 + - pyenv global $(pyenv whence 2to3) # activate all python versions + - PY_CMD=python3 - $PY_CMD -m pip install --user --upgrade pip wheel install: - $PY_CMD -m pip install --user --upgrade sphinx sphinx_rtd_theme breathe flake8 pep8-naming pytest