include wagtail-2.1 in test matrix
This commit is contained in:
@ -6,9 +6,10 @@ matrix:
|
||||
include:
|
||||
- python: 3.6
|
||||
env: lint
|
||||
|
||||
- python: 3.6
|
||||
env: TOXENV=py36-django20-wagtail20
|
||||
- python: 3.6
|
||||
env: TOXENV=py36-django20-wagtail21
|
||||
|
||||
install:
|
||||
- pip install tox codecov
|
||||
|
@ -21,9 +21,9 @@ exclude =
|
||||
[wheel]
|
||||
universal = 1
|
||||
|
||||
[coverage:run]
|
||||
omit =
|
||||
src/**/migrations/*.py
|
||||
[coverage]
|
||||
include = src/**/
|
||||
omit = src/**/migrations/*.py
|
||||
|
||||
[bumpversion:file:setup.py]
|
||||
|
||||
|
@ -4,10 +4,10 @@ import datetime
|
||||
|
||||
import pytest
|
||||
|
||||
from tests.factories.segment import SegmentFactory
|
||||
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 wagtail_personalisation.rules import TimeRule
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
|
8
tox.ini
8
tox.ini
@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
envlist = py{36}-django{20}-wagtail{20},lint
|
||||
envlist = py{36}-django{20}-wagtail{20,21},lint
|
||||
|
||||
[testenv]
|
||||
basepython = python3.6
|
||||
@ -7,7 +7,8 @@ commands = coverage run --parallel -m pytest {posargs}
|
||||
extras = test
|
||||
deps =
|
||||
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]
|
||||
basepython = python3.6
|
||||
@ -15,8 +16,7 @@ deps = coverage
|
||||
pip_pre = true
|
||||
skip_install = true
|
||||
commands =
|
||||
coverage combine
|
||||
coverage report
|
||||
coverage report --include="src/**/" --omit="src/**/migrations/*.py"
|
||||
|
||||
[testenv:lint]
|
||||
basepython = python3.6
|
||||
|
Reference in New Issue
Block a user