diff --git a/.travis.yml b/.travis.yml index 6851a05a..831dc789 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,18 +3,90 @@ language: python cache: pip matrix: include: - - env: TOXENV=py34-dj111-postgres-wt2 + # Django 1.11 + # Wagtail 2.0 + - env: TOXENV=py34-dj111-wt2 python: 3.4 - - env: TOXENV=py35-dj111-postgres-wt2 + - env: TOXENV=py35-dj111-wt2 python: 3.5 - - env: TOXENV=py36-dj111-postgres-wt2 + - env: TOXENV=py36-dj111-wt2 python: 3.6 - - env: TOXENV=py34-dj2-postgres-wt2 + + # Wagtail 2.1 + - env: TOXENV=py34-dj111-wt21 + python: 3.4 + - env: TOXENV=py35-dj111-wt21 + python: 3.5 + - env: TOXENV=py36-dj111-wt21 + python: 3.6 + + # Wagtail 2.2 + - env: TOXENV=py34-dj111-wt22 + python: 3.4 + - env: TOXENV=py35-dj111-wt22 + python: 3.5 + - env: TOXENV=py36-dj111-wt22 + python: 3.6 + + # Wagtail 2.3 + - env: TOXENV=py34-dj111-wt23 python: 3.4 - - env: TOXENV=py35-dj2-postgres-wt2 + - env: TOXENV=py35-dj111-wt23 + python: 3.5 + - env: TOXENV=py36-dj111-wt23 + python: 3.6 + + # Django 2 + # Wagtail 2.0 + - env: TOXENV=py35-dj2-wt2 python: 3.5 - - env: TOXENV=py36-dj2-postgres-wt2 + - env: TOXENV=py36-dj2-wt2 python: 3.6 + - env: TOXENV=py37-dj2-wt2 + python: 3.7 + sudo: true + dist: xenial + + # Wagtail 2.1 + - env: TOXENV=py35-dj2-wt21 + python: 3.5 + - env: TOXENV=py36-dj2-wt21 + python: 3.6 + - env: TOXENV=py37-dj2-wt21 + python: 3.7 + sudo: true + dist: xenial + + # Wagtail 2.2 + - env: TOXENV=py35-dj2-wt22 + python: 3.5 + - env: TOXENV=py36-dj2-wt22 + python: 3.6 + - env: TOXENV=py37-dj2-wt22 + python: 3.7 + sudo: true + dist: xenial + + # Wagtail 2.3 + - env: TOXENV=py35-dj2-wt23 + python: 3.5 + - env: TOXENV=py36-dj2-wt23 + python: 3.6 + - env: TOXENV=py37-dj2-wt23 + python: 3.7 + sudo: true + dist: xenial + + # Django 2.1 + # Wagtail 2.3 + - env: TOXENV=py35-dj21-wt23 + python: 3.5 + - env: TOXENV=py36-dj21-wt23 + python: 3.6 + - env: TOXENV=py37-dj21-wt23 + python: 3.7 + sudo: true + dist: xenial # Flake 8 - env: TOXENV=flake8 @@ -24,11 +96,14 @@ matrix: # wagtail dev - env: TOXENV=wagtaildev python: 3.6 + install: - pip install codecov tox script: - tox -e $TOXENV services: - postgresql +addons: + postgresql: 9.6 after_success: - codecov diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 1128acd3..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,22 +0,0 @@ -services: - - mssql2016 - -environment: - matrix: - - TOXENV: py34-dj111-mssql-wt2 - - TOXENV: py35-dj111-mssql-wt2 - - TOXENV: py36-dj111-mssql-wt2 - - TOXENV: py34-dj2-mssql-wt2 - - TOXENV: py35-dj2-mssql-wt2 - - TOXENV: py36-dj2-mssql-wt2 - -matrix: - fast_finish: true - -install: - - C:\Python36\python -m pip install tox - -build: false # Not a C# project - -test_script: - - C:\Python36\scripts\tox diff --git a/setup.py b/setup.py index ed4fdf81..7261fca1 100755 --- a/setup.py +++ b/setup.py @@ -9,8 +9,8 @@ from wagtailtrans import get_version # noqa isort:skip sandbox_require = [ - 'Django>=2.0', - 'Wagtail>=2.0', + 'Django>=2.1', + 'Wagtail>=2.3rc1', 'psycopg2>=2.5.4', 'djangorestframework>=3.7', ] @@ -63,6 +63,12 @@ 'Framework :: Django', 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.0', + 'Framework :: Django :: 2.1', + 'Framework :: Wagtail', + 'Framework :: Wagtail :: 2.0', + 'Framework :: Wagtail :: 2.1', + 'Framework :: Wagtail :: 2.2', + 'Framework :: Wagtail :: 2.3', 'Topic :: Internet :: WWW/HTTP :: Site Management', ] ) diff --git a/tests/_sandbox/settings/base.py b/tests/_sandbox/settings/base.py index fe8726a7..dcf3b655 100644 --- a/tests/_sandbox/settings/base.py +++ b/tests/_sandbox/settings/base.py @@ -111,12 +111,6 @@ } } -if DATABASES['default']['ENGINE'] == 'sql_server.pyodbc': - DATABASES['default']['OPTIONS'] = { - 'driver': 'SQL Server Native Client 11.0', - 'MARS_Connection': 'True', - } - # Password validation # https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ diff --git a/tox.ini b/tox.ini index c567ab9b..5c4ba6b0 100644 --- a/tox.ini +++ b/tox.ini @@ -2,8 +2,9 @@ skipsdist = True usedevelop = True envlist = - py{34,35,36}-dj111-{postgres,mssql}-wt2, - py{34,35,36}-dj2-{postgres,mssql}-wt2, + py{34,35,36}-dj111-wt{2,21,22,23}, + py{35,36,37}-dj2-wt{2,21,22,23}, + py{35,36,37}-dj21-wt{23}, wagtaildev, flake8, @@ -12,23 +13,20 @@ basepython = py34: python3.4 py35: python3.5 py36: python3.6 + py37: python3.7 install_command = pip install -e ".[test]" -U {opts} {packages} commands = py.test --cov=wagtailtrans --cov-report=xml tests/ deps = dj111: django>=1.11,<2.0 - dj111-mssql: django-pyodbc-azure==1.11.0.0 dj2: django>=2.0,<2.1 - dj2-mssql: django-pyodbc-azure==2.0.1.0 + dj21: django>=2.1,<2.2 wt2: wagtail>=2.0,<2.1 + wt21: wagtail>=2.1,<2.2 + wt22: wagtail>=2.1,<2.2 + wt23: wagtail>=2.3rc1,<2.4 setenv = DJANGO_SETTINGS_MODULE=tests._sandbox.settings - # https://www.appveyor.com/docs/services-databases/#sql-server-2016 - mssql: DATABASE_ENGINE=sql_server.pyodbc - mssql: DATABASE_HOST=(local)\SQL2016 - mssql: DATABASE_NAME=master - mssql: DATABASE_USER=sa - mssql: DATABASE_PASS=Password12! [testenv:wagtaildev] basepython = python3.6