-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tox to test the package against multiple Django versions and multiple Python versions. Include the nightly version of Django. Update TravisCI config to forego Django 1.9 (no longer supported), but to test on Django nightly as well. Travis tests against Python 3.7 (development) as well. The task of installing Python development is onerous, and so we do not include it in tox.
- Loading branch information
1 parent
89f52a7
commit b9900f8
Showing
3 changed files
with
44 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,37 @@ | ||
branches: | ||
only: | ||
- development | ||
- development | ||
language: python | ||
python: | ||
- '3.4' | ||
- '3.5' | ||
- 3.4 | ||
- 3.5 | ||
env: | ||
- DJANGO_VERSION=">=1.8,<1.9" | ||
- DJANGO_VERSION=">=1.9,<1.10" | ||
- DJANGO_VERSION=">=1.10,<1.11" | ||
- DJANGO_VERSION=">=1.11,<1.12" | ||
- DJANGO=django>=1.8,<1.9 | ||
- DJANGO=django>=1.10,<1.11 | ||
- DJANGO=django>=1.11,<1.12 | ||
matrix: | ||
include: | ||
- python: 3.6 | ||
env: DJANGO_VERSION=">=1.11,<1.12" | ||
- python: '3.7-dev' | ||
env: DJANGO_VERSION=">=1.11,<1.12" | ||
- python: 3.5 | ||
env: DJANGO=https://github.com/django/django/archive/master.tar.gz | ||
- python: 3.6 | ||
env: DJANGO=django>=1.11,<1.12 | ||
- python: 3.6 | ||
env: DJANGO=https://github.com/django/django/archive/master.tar.gz | ||
- python: 3.7-dev | ||
env: DJANGO=django>=1.11,<1.12 | ||
- python: 3.7-dev | ||
env: DJANGO=https://github.com/django/django/archive/master.tar.gz | ||
allow_failures: | ||
- python: '3.7-dev' | ||
env: DJANGO_VERSION=">=1.11,<1.12" | ||
- python: 3.5 | ||
env: DJANGO=https://github.com/django/django/archive/master.tar.gz | ||
- python: 3.6 | ||
env: DJANGO=https://github.com/django/django/archive/master.tar.gz | ||
- python: 3.7-dev | ||
env: DJANGO=django>=1.11,<1.12 | ||
- python: 3.7-dev | ||
env: DJANGO=https://github.com/django/django/archive/master.tar.gz | ||
install: | ||
- "pip install -r requirements.txt" | ||
- "pip install django$DJANGO_VERSION" | ||
- pip install -r requirements.txt | ||
- pip install $DJANGO | ||
script: | ||
- "./setup.py test" | ||
- ./setup.py test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
setuptools==36.2.4 | ||
tox==2.7.0 | ||
twine==1.9.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tox] | ||
envlist = | ||
{py34,py35}-django{18,110} | ||
{py34,py35,py36}-django111, | ||
{py35,py36}-djangomaster | ||
|
||
[testenv] | ||
commands = ./runtests.py | ||
setenv = | ||
PYTHONDONTWRITEBYTECODE=1 | ||
PYTHONWARNINGS=once | ||
deps = | ||
django18: Django>=1.8,<1.9 | ||
django110: Django>=1.10,<1.11 | ||
django111: Django>=1.11,<2.0 | ||
djangomaster: https://github.com/django/django/archive/master.tar.gz |