Added tests for new Wagtail 2.7 and Python 3.8

This commit is contained in:
Benedikt Willi 2019-11-07 16:27:52 +01:00
parent 18ed10a2a9
commit 154acd006c
2 changed files with 35 additions and 12 deletions

View file

@ -1,19 +1,23 @@
language: python
python:
- "3.7"
- "3.8"
env:
- WAGTAIL="wagtail>=2.6,<2.7" DB=sqlite
- WAGTAIL="wagtail>=2.7,<2.8" DB=sqlite
matrix:
include:
# Latest Wagtail version
- env: WAGTAIL="wagtail>=2.6,<2.7" DB=postgres
- env: WAGTAIL="wagtail>=2.6,<2.7" DB=mysql
- env: WAGTAIL="wagtail>=2.7,<2.8" DB=postgres
- env: WAGTAIL="wagtail>=2.7,<2.8" DB=mysql
- python: "3.8"
- python: "3.7"
- python: "3.6"
- python: "3.5"
- python: "3.4"
# Past Wagtail versions
- python: "3.7"
env: WAGTAIL="wagtail>=2.6,<2.7"
- python: "3.7"
env: WAGTAIL="wagtail>=2.5,<2.6"
- python: "3.4" # Wagtail 2.5 was the last to support python 3.4
env: WAGTAIL="wagtail>=2.5,<2.6"
- python: "3.7"
env: WAGTAIL="wagtail>=2.4,<2.5"
@ -44,7 +48,7 @@ before_script:
install:
- pip install --upgrade -q pip setuptools
- if [[ $DB == mysql ]] && [[ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]]; then pip install -q mysql-python; elif [[ $DB == mysql ]] && [[ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]]; then pip install -q mysqlclient; fi
- if [[ $DB == postgres ]]; then pip install -q 'psycopg2-binary<2.8'; fi
- if [[ $DB == postgres ]]; then pip install -q 'psycopg2-binary'; fi
- pip install $WAGTAIL
- pip install -e .
script:

31
tox.ini
View file

@ -1,9 +1,13 @@
[tox]
envlist =
py38-2.7.X,
py37-2.7.X,
py36-2.7.X,
py35-2.7.X,
py34-2.7.X,
py37-2.6.X,
py36-2.6.X,
py35-2.6.X,
py34-2.6.X,
py37-2.5.X,
py36-2.5.X,
py35-2.5.X,
@ -37,6 +41,26 @@ envlist =
commands =
{envpython} runtests.py
[testenv:py38-2.7.X]
basepython = python3.8
deps =
wagtail>=2.7,<2.8
[testenv:py37-2.7.X]
basepython = python3.7
deps =
wagtail>=2.7,<2.8
[testenv:py36-2.7.X]
basepython = python3.6
deps =
wagtail>=2.7,<2.8
[testenv:py35-2.7.X]
basepython = python3.5
deps =
wagtail>=2.7,<2.8
[testenv:py37-2.6.X]
basepython = python3.7
deps =
@ -52,11 +76,6 @@ basepython = python3.5
deps =
wagtail>=2.6,<2.7
[testenv:py34-2.6.X]
basepython = python3.4
deps =
wagtail>=2.6,<2.7
[testenv:py37-2.5.X]
basepython = python3.7
deps =