Skip to content

Commit 1caeb8d

Browse files
committed
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]
1 parent 2768030 commit 1caeb8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ matrix:
1313
env: STYLE DOCS PIP
1414
cache: false
1515
before_install:
16-
- pyenv global system 2.7 3.6
17-
- PY_CMD=python3.6
16+
- pyenv global $(pyenv whence 2to3) # activate all python versions
17+
- PY_CMD=python3
1818
- $PY_CMD -m pip install --user --upgrade pip wheel
1919
install:
2020
- $PY_CMD -m pip install --user --upgrade sphinx sphinx_rtd_theme breathe flake8 pep8-naming pytest

0 commit comments

Comments
 (0)