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]
This commit is contained in:
Dean Moldovan 2017-09-13 21:45:49 +02:00
parent 27680302dd
commit 1caeb8d789

View File

@ -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