Added Django 2.1 to test list.

This commit is contained in:
Martin Mahner 2018-09-17 22:17:23 +02:00
parent e0fc68e4e0
commit 89a4e95d88
2 changed files with 27 additions and 20 deletions

View file

@ -1,25 +1,18 @@
language: python language: python
python: # https://github.com/travis-ci/travis-ci/issues/9815#issuecomment-411073985
- 3.4 matrix:
- 3.5 include:
- 3.6 - python: 3.4
- python: 3.5
- python: 3.6
- python: 3.7
dist: xenial
sudo: true
env: install: pip install tox-travis coverage codacy-coverage
- DJANGO: django>=1.11,<2.0
- DJANGO: django>=2.0
before_install: script: tox
- pip install coverage codacy-coverage
- coverage erase
install:
- npm install
- pip install $DJANGO
- pip install -e .[standalone]
script:
- coverage run --append runtests.py
after_success: after_success:
- coverage xml - coverage xml

18
tox.ini
View file

@ -2,8 +2,10 @@
toxworkdir=/tmp/tox/dpaste toxworkdir=/tmp/tox/dpaste
skip_missing_interpreters=True skip_missing_interpreters=True
envlist= envlist=
readme
coverage_setup coverage_setup
py{34,35,36}-django-{111,20} py{34,35,36,37}-django-{111,20}
py{35,36,37}-django-{21}
coverage_report coverage_report
[testenv] [testenv]
@ -18,16 +20,28 @@ commands=
deps= deps=
# Django versions # Django versions
django-111: django>=1.11,<1.12 django-111: django>=1.11,<2.0
django-20: django==2.0 django-20: django==2.0
django-21: django==2.1
[testenv:coverage_setup] [testenv:coverage_setup]
skip_install = True
basepython=python3.6 basepython=python3.6
commands= commands=
coverage erase coverage erase
[testenv:coverage_report] [testenv:coverage_report]
skip_install = True
basepython=python3.6 basepython=python3.6
commands= commands=
coverage report coverage report
coverage html coverage html
[testenv:readme]
skip_install = True
deps =
docutils
Pygments
commands =
rst2html.py --report=info --halt=warning README.rst /dev/null
rst2html.py --report=info --halt=warning CHANGELOG.rst /dev/null