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
15 changed files
with
126 additions
and
148 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,3 +1,5 @@ | ||
*.pyc | ||
.coverage | ||
htmlcov | ||
*.egg-info | ||
.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,46 @@ | ||
language: python | ||
|
||
python: | ||
- 2.6 | ||
- 2.7 | ||
- 3.2 | ||
- 3.3 | ||
- 3.4 | ||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- env: DJANGO=master | ||
include: | ||
- python: 2.7 | ||
env: DJANGO=1.11 | ||
|
||
env: | ||
- DJANGO_VERSION=1.4 MODULE=jsignature | ||
- DJANGO_VERSION=1.5 MODULE=jsignature | ||
- DJANGO_VERSION=1.6 MODULE=jsignature.tests | ||
- DJANGO_VERSION=1.7 MODULE=jsignature.tests | ||
- python: 3.5 | ||
env: DJANGO=1.11 | ||
- python: 3.5 | ||
env: DJANGO=2.2 | ||
|
||
install: | ||
- pip install -r requirements.txt --use-mirrors | ||
- pip install -q Django==$DJANGO_VERSION --use-mirrors | ||
- pip install coverage | ||
- python: 3.6 | ||
env: DJANGO=1.11 | ||
- python: 3.6 | ||
env: DJANGO=2.2 | ||
- python: 3.6 | ||
env: DJANGO=3.0 | ||
- python: 3.6 | ||
env: DJANGO=master | ||
|
||
script: coverage run quicktest.py $MODULE | ||
- python: 3.7 | ||
env: DJANGO=2.2 | ||
- python: 3.7 | ||
env: DJANGO=3.0 | ||
- python: 3.7 | ||
env: DJANGO=master | ||
|
||
after_success: | ||
- pip install coveralls | ||
- coveralls | ||
|
||
# We need to exclude old versions of Django for tests with python 3. | ||
# We need to exclude old versions of Python for tests with Django >= 1.7. | ||
matrix: | ||
exclude: | ||
- python: 3.2 | ||
env: DJANGO_VERSION=1.4 MODULE=jsignature | ||
- python: 3.3 | ||
env: DJANGO_VERSION=1.4 MODULE=jsignature | ||
- python: 3.4 | ||
env: DJANGO_VERSION=1.4 MODULE=jsignature | ||
- python: 3.4 | ||
env: DJANGO_VERSION=1.5 MODULE=jsignature | ||
- python: 3.4 | ||
env: DJANGO_VERSION=1.6 MODULE=jsignature.tests | ||
- python: 2.6 | ||
env: DJANGO_VERSION=1.7 MODULE=jsignature.tests | ||
- python: 3.8 | ||
env: DJANGO=2.2 | ||
- python: 3.8 | ||
env: DJANGO=3.0 | ||
- python: 3.8 | ||
env: DJANGO=master | ||
|
||
install: | ||
- pip install tox tox-travis | ||
script: | ||
- tox | ||
after_success: | ||
- pip install coveralls | ||
- coveralls |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
import django | ||
from django.conf import settings | ||
from django.test.utils import get_runner | ||
|
||
if __name__ == "__main__": | ||
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' | ||
django.setup() | ||
TestRunner = get_runner(settings) | ||
test_runner = TestRunner() | ||
failures = test_runner.run_tests(["tests"]) | ||
sys.exit(bool(failures)) |
Empty file.
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,34 @@ | ||
import os | ||
|
||
DEBUG = True | ||
|
||
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) | ||
|
||
SECRET_KEY = 'thisisntactuallysecretatall' | ||
|
||
ALLOWED_HOSTS = ['*'] | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': ':memory:', | ||
} | ||
} | ||
|
||
# ROOT_URLCONF = 'tests.urls' | ||
|
||
INSTALLED_APPS = [ | ||
'jsignature', | ||
'tests', | ||
] | ||
|
||
PASSWORD_HASHERS = { | ||
'django.contrib.auth.hashers.MD5PasswordHasher', | ||
} | ||
|
||
TEMPLATES = [ | ||
{ | ||
'BACKEND': 'django.template.backends.django.DjangoTemplates', | ||
'APP_DIRS': True, | ||
}, | ||
] |
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
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
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,23 @@ | ||
[tox] | ||
envlist = | ||
{py27,py35,py36}-django111, | ||
{py35,py36,py37,py38}-django22, | ||
{py36,py37,py38}-django{30,master} | ||
|
||
[testenv] | ||
deps= | ||
django111: Django>=1.11,<2.0 | ||
django22: Django>=2.2,<3.0 | ||
django30: Django>=3.0,<4.0 | ||
djangomaster: https://github.com/django/django/archive/master.tar.gz | ||
-r requirements.txt | ||
coverage | ||
|
||
commands= coverage run ./runtests.py | ||
|
||
[travis:env] | ||
DJANGO = | ||
1.11: django111 | ||
2.2: django22 | ||
3.0: django30 | ||
master: djangomaster |