Merge pull request #125 from rtfd/update-tox

Run travis against multiple sphinx versions
This commit is contained in:
Eric Holscher 2018-10-12 13:55:47 +02:00 committed by GitHub
commit fdeeda5f6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 9 deletions

View file

@ -1,7 +1,6 @@
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
sudo: false
@ -15,3 +14,6 @@ notifications:
- readthedocs:y3hjODOi7EIz1JAbD1Zb41sz#random
on_success: change
on_failure: always
branches:
only:
- master

18
tox.ini
View file

@ -1,14 +1,14 @@
[tox]
envlist =
py{27,34,35,36}
lint
docs
py{27,35,36}-sphinx{16,17,18},
# Workaround https://github.com/tox-dev/tox/issues/706
lint-sphinx18
docs-sphinx18
[tox:travis]
2.7 = py27, docs, #lint
3.4 = py34
3.5 = py35
3.6 = py36
2.7 = py27-sphinx{16,17,18}, docs-sphinx16, lint-sphinx16
3.5 = py35-sphinx{16,17,18}
3.6 = py36-sphinx{16,17,18}
[testenv]
setenv =
@ -16,7 +16,9 @@ setenv =
deps =
.
pytest
sphinx<1.7
sphinx16: Sphinx < 1.7
sphinx17: Sphinx < 1.8
sphinx18: Sphinx < 1.9
commands =
py.test {posargs}