Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use tox for testing locally and in travis.
- Loading branch information
Showing
16 changed files
with
80 additions
and
243 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,169 +1,26 @@ | ||
sudo: false | ||
language: python | ||
branches: | ||
only: | ||
- master | ||
|
||
# The current build matrix may be described as follows: | ||
# | ||
# build := (Python version, Django version, Celery version) | ||
# | ||
# where | ||
# | ||
# 2.6 <= Python version <= 3.4 + PyPy | ||
# 1.3 <= Django version <= 1.7 | ||
# 2.3 <= Celery version <= 3.1 | ||
# | ||
# We skip Celery 2.5 since it doesn't introduce any relevant features | ||
# and the number of build variants is big enough already. | ||
# | ||
# Python 3.3 and PyPy are only supported by Django 1.5+. | ||
# Python 3.3 is only supported by Celery 2.4+. | ||
# | ||
# Python 3.4 is supported by Django 1.7, which also drops 2.6 support. | ||
# Python 3.4 also breaks with Celery <3.1, so drop those combinations. | ||
# (It may actually be that django-celery breaks in 3.4. It's a super edge | ||
# case, so I haven't investigated at all.) | ||
# | ||
# For Celery < 3.1, we additionally need to install django-celery. | ||
# | ||
# Since this kind of build matrix is difficult to encode in a .travis.yml | ||
# file we just present an unrolled version here. | ||
matrix: | ||
include: | ||
# Python 2.6: Django 1.3 to 1.6, Celery 2.3 to 3.1 | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.3,<1.4 celery>=2.3,<2.4 django-celery django-override-settings" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.3,<1.4 celery>=2.4,<2.5 django-celery django-override-settings" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.3,<1.4 celery>=3.0,<3.1 django-celery django-override-settings" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.3,<1.4 celery>=3.1,<3.2 django-override-settings" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.4,<1.5 celery>=2.3,<2.4 django-celery" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.4,<1.5 celery>=2.4,<2.5 django-celery" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.4,<1.5 celery>=3.0,<3.1 django-celery" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.4,<1.5 celery>=3.1,<3.2" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=2.3,<2.4 django-celery" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=2.4,<2.5 django-celery" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=3.0,<3.1 django-celery" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=3.1,<3.2" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=2.3,<2.4 django-celery" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=2.4,<2.5 django-celery" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=3.0,<3.1 django-celery" | ||
- python: 2.6 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=3.1,<3.2" | ||
|
||
# Python 2.7: Django 1.3 to 1.7, Celery 2.3 to 3.1 | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.3,<1.4 celery>=2.3,<2.4 django-celery django-override-settings" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.3,<1.4 celery>=2.4,<2.5 django-celery django-override-settings" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.3,<1.4 celery>=3.0,<3.1 django-celery django-override-settings" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.3,<1.4 celery>=3.1,<3.2 django-override-settings" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.4,<1.5 celery>=2.3,<2.4 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.4,<1.5 celery>=2.4,<2.5 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.4,<1.5 celery>=3.0,<3.1 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.4,<1.5 celery>=3.1,<3.2" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=2.3,<2.4 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=2.4,<2.5 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=3.0,<3.1 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=3.1,<3.2" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=2.3,<2.4 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=2.4,<2.5 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=3.0,<3.1 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=3.1,<3.2" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.7,<1.8 celery>=2.3,<2.4 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.7,<1.8 celery>=2.4,<2.5 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.7,<1.8 celery>=3.0,<3.1 django-celery" | ||
- python: 2.7 | ||
env: INSTALL="Django>=1.7,<1.8 celery>=3.1,<3.2" | ||
|
||
# Python 3.3: Django 1.5 to 1.7, Celery 2.4 to 3.1 | ||
- python: 3.3 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=2.4,<2.5 django-celery" | ||
- python: 3.3 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=3.0,<3.1 django-celery" | ||
- python: 3.3 | ||
env: INSTALL="Django>=1.5,<1.6 celery>=3.1,<3.2" | ||
- python: 3.3 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=2.4,<2.5 django-celery" | ||
- python: 3.3 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=3.0,<3.1 django-celery" | ||
- python: 3.3 | ||
env: INSTALL="Django>=1.6,<1.7 celery>=3.1,<3.2" | ||
- python: 3.3 | ||
env: INSTALL="Django>=1.7,<1.8 celery>=2.4,<2.5 django-celery" | ||
- python: 3.3 | ||
env: INSTALL="Django>=1.7,<1.8 celery>=3.0,<3.1 django-celery" | ||
- python: 3.3 | ||
env: INSTALL="Django>=1.7,<1.8 celery>=3.1,<3.2" | ||
|
||
# Python 3.4: Django 1.7, Celery 3.1 | ||
- python: 3.4 | ||
env: INSTALL="Django>=1.7,<1.8 celery>=3.1,<3.2" | ||
|
||
|
||
# PyPy: Django 1.5 to 1.7, Celery 2.3 to 3.1 | ||
- python: pypy | ||
env: INSTALL="Django>=1.5,<1.6 celery>=2.3,<2.4 django-celery" | ||
- python: pypy | ||
env: INSTALL="Django>=1.5,<1.6 celery>=2.4,<2.5 django-celery" | ||
- python: pypy | ||
env: INSTALL="Django>=1.5,<1.6 celery>=3.0,<3.1 django-celery" | ||
- python: pypy | ||
env: INSTALL="Django>=1.5,<1.6 celery>=3.1,<3.2" | ||
- python: pypy | ||
env: INSTALL="Django>=1.6,<1.7 celery>=2.3,<2.4 django-celery" | ||
- python: pypy | ||
env: INSTALL="Django>=1.6,<1.7 celery>=2.4,<2.5 django-celery" | ||
- python: pypy | ||
env: INSTALL="Django>=1.6,<1.7 celery>=3.0,<3.1 django-celery" | ||
- python: pypy | ||
env: INSTALL="Django>=1.6,<1.7 celery>=3.1,<3.2" | ||
- python: pypy | ||
env: INSTALL="Django>=1.7,<1.8 celery>=2.3,<2.4 django-celery" | ||
- python: pypy | ||
env: INSTALL="Django>=1.7,<1.8 celery>=2.4,<2.5 django-celery" | ||
- python: pypy | ||
env: INSTALL="Django>=1.7,<1.8 celery>=3.0,<3.1 django-celery" | ||
- python: pypy | ||
env: INSTALL="Django>=1.7,<1.8 celery>=3.1,<3.2" | ||
|
||
|
||
install: | ||
- pip install $INSTALL | ||
- pip install -r requirements.txt | ||
|
||
|
||
before_script: | ||
- flake8 | ||
script: python setup.py test | ||
env: | ||
- TOXENV=py27-dj17-celery24 | ||
- TOXENV=py27-dj17-celery30 | ||
- TOXENV=py27-dj17-celery31 | ||
- TOXENV=py27-dj18-celery24 | ||
- TOXENV=py27-dj18-celery30 | ||
- TOXENV=py27-dj18-celery31 | ||
- TOXENV=py33-dj17-celery24 | ||
- TOXENV=py33-dj17-celery30 | ||
- TOXENV=py33-dj17-celery31 | ||
- TOXENV=py33-dj18-celery24 | ||
- TOXENV=py33-dj18-celery30 | ||
- TOXENV=py33-dj18-celery31 | ||
- TOXENV=pypy-dj17-celery24 | ||
- TOXENV=pypy-dj17-celery30 | ||
- TOXENV=pypy-dj17-celery31 | ||
- TOXENV=pypy-dj18-celery24 | ||
- TOXENV=pypy-dj18-celery30 | ||
- TOXENV=pypy-dj18-celery31 | ||
- TOXENV=py34-dj18-celery31 | ||
- TOXENV=py35-dj18-celery31 | ||
- TOXENV=flake8 | ||
install: pip install tox | ||
script: 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 +1 @@ | ||
from __about__ import * # noqa | ||
from .__about__ import * # noqa |
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,5 +1,4 @@ | ||
Django | ||
Django>=1.7 | ||
celery>=2.3.0 | ||
django-appconf | ||
flake8 | ||
six |
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,13 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
import django | ||
|
||
from tests import DJCETestSuiteRunner | ||
|
||
if __name__ == "__main__": | ||
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' | ||
django.setup() | ||
failures = DJCETestSuiteRunner().run_tests(["tests"]) | ||
sys.exit(bool(failures)) |
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 +0,0 @@ | ||
[flake8] | ||
max-line-length=100 | ||
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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
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,10 @@ | ||
from django.test.runner import DiscoverRunner | ||
|
||
|
||
class DJCETestSuiteRunner(DiscoverRunner): | ||
def setup_test_environment(self, **kwargs): | ||
# have to do this here as the default test runner overrides EMAIL_BACKEND | ||
super(DJCETestSuiteRunner, self).setup_test_environment(**kwargs) | ||
|
||
from django.conf import settings | ||
settings.EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend' |
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
Oops, something went wrong.