-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Used TOX to start testing against Django 1.9.
- Loading branch information
Showing
4 changed files
with
60 additions
and
21 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 |
---|---|---|
|
@@ -32,3 +32,4 @@ build/ | |
dist/ | ||
django_colorful.egg-info | ||
.coverage | ||
.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,31 +1,34 @@ | ||
sudo: false | ||
sudo: no | ||
|
||
language: python | ||
|
||
python: | ||
- 2.7 | ||
- 3.2 | ||
- 3.3 | ||
- 3.4 | ||
|
||
env: | ||
- REQUIREMENTS="django>=1.8,<1.9" | ||
- REQUIREMENTS="https://github.com/django/django/archive/master.tar.gz" | ||
- TOXENV=flake8 | ||
- TOXENV=py27-1.8 | ||
- TOXENV=py27-1.9 | ||
- TOXENV=py27-master | ||
- TOXENV=py32-1.8 | ||
- TOXENV=py33-1.8 | ||
- TOXENV=py34-1.8 | ||
- TOXENV=py34-1.9 | ||
- TOXENV=py34-master | ||
|
||
matrix: | ||
exclude: | ||
- python: 3.2 | ||
env: REQUIREMENTS="https://github.com/django/django/archive/master.tar.gz" | ||
include: | ||
- python: 3.5 | ||
env: TOXENV=py35-1.9 | ||
- python: 3.5 | ||
env: TOXENV=py35-master | ||
allow_failures: | ||
- env: REQUIREMENTS="https://github.com/django/django/archive/master.tar.gz" | ||
|
||
cache: pip | ||
- env: TOXENV=py27-master | ||
- env: TOXENV=py34-master | ||
- env: TOXENV=py35-master | ||
|
||
install: pip install $REQUIREMENTS "coverage<4.0" mock flake8 coveralls | ||
install: | ||
- pip install tox coveralls "virtualenv<14.0" | ||
|
||
script: python -R -Wonce `which coverage` run `which django-admin.py` test --pythonpath=`pwd` --settings=tests.settings -v2 | ||
script: | ||
- tox | ||
|
||
after_success: | ||
- flake8 | ||
- coverage report -m | ||
- coveralls | ||
- if [ -f .coverage ]; then coveralls; fi |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
url=github_url, | ||
author='Simon Charette', | ||
author_email='[email protected]', | ||
requires=[ | ||
install_requires=[ | ||
'Django>=1.8', | ||
], | ||
packages=find_packages(), | ||
|
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,35 @@ | ||
[tox] | ||
args_are_paths = false | ||
envlist = | ||
flake8, | ||
py27-{1.8,1.9,master}, | ||
py32-{1.8}, | ||
py33-{1.8}, | ||
py34-{1.8,1.9,master}, | ||
py35-{1.9,master} | ||
|
||
[testenv] | ||
basepython = | ||
py27: python2.7 | ||
py32: python3.2 | ||
py33: python3.3 | ||
py34: python3.4 | ||
py35: python3.5 | ||
usedevelop = true | ||
commands = | ||
{envpython} -R -Wonce {envbindir}/coverage run {envbindir}/django-admin.py test -v2 --settings=tests.settings {posargs} | ||
coverage report | ||
deps = | ||
py32: coverage<4.0 | ||
{py27,py32}: mock | ||
{py27,py33,py34,py35}: coverage | ||
1.8: Django>=1.8,<1.9 | ||
1.9: Django>=1.9,<1.10 | ||
master: https://github.com/django/django/archive/master.tar.gz | ||
|
||
[testenv:flake8] | ||
basepython = python2.7 | ||
commands = | ||
flake8 | ||
deps = | ||
flake8 |