-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
153 additions
and
75 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,36 +1,48 @@ | ||
# Config file for automatic testing at travis-ci.org | ||
dist: xenial | ||
language: python | ||
|
||
cache: pip | ||
sudo: false | ||
python: | ||
- "3.7" | ||
- "3.6" | ||
- "3.5" | ||
- "3.4" | ||
- "2.7" | ||
env: | ||
- DJANGO="Django>=2.1,<2.2" | ||
- DJANGO="Django>=2.0,<2.1" | ||
- DJANGO="Django>=1.11,<1.12" | ||
- DJANGO="https://github.com/django/django/archive/master.tar.gz" | ||
before_install: | ||
- pip install -q $DJANGO coveralls | ||
|
||
matrix: | ||
include: | ||
- env: TOXENV=py34-dj111 | ||
python: 3.4 | ||
- env: TOXENV=py34-dj2 | ||
python: 3.4 | ||
- env: TOXENV=py35-dj111 | ||
python: 3.5 | ||
- env: TOXENV=py35-dj2 | ||
python: 3.5 | ||
- env: TOXENV=py35-dj21 | ||
python: 3.5 | ||
- env: TOXENV=py35-dj22 | ||
python: 3.5 | ||
- env: TOXENV=py36-dj111 | ||
python: 3.6 | ||
- env: TOXENV=py36-dj2 | ||
python: 3.6 | ||
- env: TOXENV=py36-dj21 | ||
python: 3.6 | ||
- env: TOXENV=py36-dj22 | ||
python: 3.6 | ||
- env: TOXENV=py36-dj3 | ||
python: 3.6 | ||
- env: TOXENV=py37-dj2 | ||
python: 3.7 | ||
- env: TOXENV=py37-dj21 | ||
python: 3.7 | ||
- env: TOXENV=py37-dj22 | ||
python: 3.7 | ||
- env: TOXENV=py37-dj3 | ||
python: 3.7 | ||
- env: TOXENV=py38-dj22 | ||
python: 3.8 | ||
- env: TOXENV=py38-dj3 | ||
python: 3.8 | ||
|
||
install: | ||
- python setup.py develop | ||
- pip install tox | ||
|
||
script: | ||
- python setup.py test | ||
after_success: | ||
- coveralls | ||
matrix: | ||
exclude: | ||
- python: "3.4" | ||
env: DJANGO="Django>=2.1,<2.2" | ||
- python: "2.7" | ||
env: DJANGO="Django>=2.1,<2.2" | ||
- python: "2.7" | ||
env: DJANGO="Django>=2.0,<2.1" | ||
- python: "2.7" | ||
env: DJANGO="https://github.com/django/django/archive/master.tar.gz" | ||
allow_failures: | ||
- env: DJANGO="https://github.com/django/django/archive/master.tar.gz" | ||
- tox |
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
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,17 @@ | ||
#!test/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings' | ||
|
||
|
||
def runtests(): | ||
|
||
argv = [sys.argv[0], 'test'] | ||
return execute_from_command_line(argv) | ||
|
||
|
||
if __name__ == '__main__': | ||
sys.exit(runtests()) |
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
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
File renamed without changes.
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,15 @@ | ||
try: | ||
from django.conf.urls import include, url | ||
except ImportError: | ||
from django.conf.urls.defaults import include, url | ||
|
||
from django.http import HttpResponse | ||
|
||
# URL test patterns for popularity. Use this file to ensure a consistent | ||
# set of URL patterns are used when running unit tests. This test_urls | ||
# module should be referred to by your test class. | ||
|
||
urlpatterns = [ | ||
url('^$', lambda r: HttpResponse('Rendered response page'), name='test'), | ||
url('^ignored/$', lambda r: HttpResponse('Rendered response page'), name='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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[tox] | ||
skipsdist = True | ||
usedevelop = True | ||
toxworkdir = ../toxworkdir/django-maintenance/.tox | ||
|
||
envlist = | ||
; py34 | ||
py34-dj{111,2} | ||
; py35 | ||
py35-dj{111,2,21,22} | ||
; py36 | ||
py36-dj{111,2,21,22,3} | ||
; py37 | ||
py37-dj{111,2,21,22,3} | ||
; py38 | ||
py38-dj{22,3} | ||
|
||
[testenv] | ||
install_command = pip install -e . -U {opts} {packages} | ||
commands = python runtests.py | ||
|
||
basepython = | ||
py34: python3.4 | ||
py35: python3.5 | ||
py36: python3.6 | ||
py37: python3.7 | ||
py38: python3.8 | ||
|
||
deps = | ||
dj111: Django>=1.11,<2.0 | ||
dj2: Django>=2.0,<2.1 | ||
dj21: Django>=2.1,<2.2 | ||
dj22: Django>=2.2,<3.0 | ||
dj3: Django>=3.0,<3.1 |