7

include wagtail-2.1 in test matrix

This commit is contained in:
Paul J Stevens
2018-05-26 14:57:03 +02:00
parent 12f110d913
commit 4ad097b4fa
4 changed files with 11 additions and 10 deletions

View File

@ -6,9 +6,10 @@ matrix:
include: include:
- python: 3.6 - python: 3.6
env: lint env: lint
- python: 3.6 - python: 3.6
env: TOXENV=py36-django20-wagtail20 env: TOXENV=py36-django20-wagtail20
- python: 3.6
env: TOXENV=py36-django20-wagtail21
install: install:
- pip install tox codecov - pip install tox codecov

View File

@ -21,9 +21,9 @@ exclude =
[wheel] [wheel]
universal = 1 universal = 1
[coverage:run] [coverage]
omit = include = src/**/
src/**/migrations/*.py omit = src/**/migrations/*.py
[bumpversion:file:setup.py] [bumpversion:file:setup.py]

View File

@ -4,10 +4,10 @@ import datetime
import pytest import pytest
from tests.factories.segment import SegmentFactory
from tests.factories.page import ContentPageFactory from tests.factories.page import ContentPageFactory
from wagtail_personalisation.rules import TimeRule from tests.factories.segment import SegmentFactory
from tests.site.pages import models from tests.site.pages import models
from wagtail_personalisation.rules import TimeRule
@pytest.mark.django_db @pytest.mark.django_db

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py{36}-django{20}-wagtail{20},lint envlist = py{36}-django{20}-wagtail{20,21},lint
[testenv] [testenv]
basepython = python3.6 basepython = python3.6
@ -7,7 +7,8 @@ commands = coverage run --parallel -m pytest {posargs}
extras = test extras = test
deps = deps =
django20: django>=2.0,<2.2 django20: django>=2.0,<2.2
wagtail20: wagtail>=2.0,<2.2 wagtail20: wagtail>=2.0,<2.1
wagtail21: wagtail>=2.1,<2.2
[testenv:coverage-report] [testenv:coverage-report]
basepython = python3.6 basepython = python3.6
@ -15,8 +16,7 @@ deps = coverage
pip_pre = true pip_pre = true
skip_install = true skip_install = true
commands = commands =
coverage combine coverage report --include="src/**/" --omit="src/**/migrations/*.py"
coverage report
[testenv:lint] [testenv:lint]
basepython = python3.6 basepython = python3.6