Merge pull request #1012 from readthedocs/test-more

Test with more versions of sphinx/python
This commit is contained in:
Santos Gallegos 2020-10-08 17:57:23 -05:00 committed by GitHub
commit 4366e9e3f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,9 @@
version: 2
python:
version: 3
install:
- requirements: docs/requirements.txt
sphinx:
configuration: docs/conf.py

View File

@ -3,6 +3,7 @@ python:
- 2.7
- 3.6
- 3.7
- 3.8
install:
- pip install tox-travis
- pip install sphinx

13
tox.ini
View File

@ -1,10 +1,11 @@
[tox]
envlist = py{27,36,37}-sphinx{16,17,18,20,21,22,23,24,30}
envlist = py{27,36,37,38}-sphinx{16,17,18,20,21,22,23,24,30,31,32}
[tox:travis]
2.7 = py27-sphinx{16,17,18,20,21,22,23,24,30}
3.6 = py36-sphinx{16,17,18,20,21,22,23,24,30}
3.7 = py37-sphinx{16,17,18,20,21,22,23,24,30}
2.7 = py27-sphinx{16,17,18,20,21,22,23,24,30,31,32}
3.6 = py36-sphinx{16,17,18,20,21,22,23,24,30,31,32}
3.7 = py37-sphinx{16,17,18,20,21,22,23,24,30,31,32}
3.8 = py38-sphinx{16,17,18,20,21,22,23,24,30,31,32}
[testenv]
setev =
@ -23,6 +24,8 @@ deps =
sphinx23: Sphinx < 2.4
sphinx24: Sphinx < 2.5
sphinx30: Sphinx < 3.1
sphinx31: Sphinx < 3.2
sphinx32: Sphinx < 3.3
commands =
py.test {posargs} tests/
pytest {posargs} tests/
sphinx-build -b html -d {envtmpdir}/doctrees docs/ {envtmpdir}/html