Skip to content

Commit

Permalink
Update test config
Browse files Browse the repository at this point in the history
* Add Django 2.0 to test matrix
* Add test for docs and readme
  • Loading branch information
mixxorz committed Dec 14, 2017
1 parent 350d981 commit 2359b18
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ env:
- DJANGO=1.9
- DJANGO=1.10
- DJANGO=1.11
- DJANGO=2.0
matrix:
exclude:
# Python/Django combinations that aren't officially supported
- { python: 3.6, env: DJANGO=1.8 }
- { python: 3.6, env: DJANGO=1.9 }
- { python: 3.6, env: DJANGO=1.10 }
- { python: 2.7, env: DJANGO=2.0 }
include:
- { python: 2.7, env: TOXENV=flake8 }
- { python: 3.6, env: TOXENV=flake8 }
- { python: 3.6, env: TOXENV=readme }

install:
- pip install tox-travis
Expand Down
30 changes: 26 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,44 @@ envlist =
py{27,34,35}-django18
py{27,34,35}-django110
py{27,34,35,36}-django111
py{34,35,36}-django20
docs
readme

[testenv]
deps =
django18: Django>=1.8,<1.9
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
py27: mock
commands =
python runtests.py

[testenv:docs]
changedir = docs
deps =
sphinx
sphinx-autobuild
sphinx_rtd_theme
whitelist_externals = make
commands = make html

[testenv:flake8]
basepython = python
deps = flake8
commands =
flake8
commands = flake8

[testenv:readme]
deps = readme_renderer
commands = python setup.py check --restructuredtext --strict

[travis:env]
DJANGO =
1.8: django18
1.9: django19
1.10: django110
1.11: django111
2.0: django20

[flake8]
exclude =
Expand All @@ -38,5 +61,4 @@ exclude =
.ropeproject,
runtests.py
setup.py,

max-line-length = 80

0 comments on commit 2359b18

Please sign in to comment.