-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from yprez/tests-and-such
Improve test runs, support Python 3.5, Django 1.9, drop support for older versions
- Loading branch information
Showing
5 changed files
with
47 additions
and
150 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,45 +1,27 @@ | ||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "3.2" | ||
- "3.3" | ||
- "3.4" | ||
python: 3.5 | ||
env: | ||
global: | ||
- PYTHONPATH=. | ||
- DJANGO_SETTINGS_MODULE=test_settings | ||
matrix: | ||
- DJANGO_VERSION=1.4 | ||
- DJANGO_VERSION=1.5 | ||
- DJANGO_VERSION=1.6 | ||
- DJANGO_VERSION=1.7 | ||
- DJANGO_VERSION=1.8 | ||
matrix: | ||
exclude: | ||
- python: "3.2" | ||
env: DJANGO_VERSION=1.4 | ||
- python: "3.3" | ||
env: DJANGO_VERSION=1.4 | ||
- python: "3.4" | ||
env: DJANGO_VERSION=1.4 | ||
- python: "3.4" | ||
env: DJANGO_VERSION=1.5 | ||
- python: "3.4" | ||
env: DJANGO_VERSION=1.6 | ||
- python: "2.6" | ||
env: DJANGO_VERSION=1.7 | ||
- python: "2.6" | ||
env: DJANGO_VERSION=1.8 | ||
- TOX_ENV=py35-django19 | ||
- TOX_ENV=py34-django19 | ||
- TOX_ENV=py27-django19 | ||
- TOX_ENV=py35-django18 | ||
- TOX_ENV=py34-django18 | ||
- TOX_ENV=py33-django18 | ||
- TOX_ENV=py32-django18 | ||
- TOX_ENV=py27-django18 | ||
- TOX_ENV=py34-django17 | ||
- TOX_ENV=py33-django17 | ||
- TOX_ENV=py32-django17 | ||
- TOX_ENV=py27-django17 | ||
- TOX_ENV=coverage | ||
- TOX_ENV=flake8 | ||
install: | ||
- pip install -q "Django>=${DJANGO_VERSION},<${DJANGO_VERSION}.99" | ||
- pip install -q South==1.0 coverage flake8 | ||
- pip install coveralls | ||
- pip install tox coveralls | ||
script: | ||
- django-admin.py syncdb --noinput | ||
- django-admin.py migrate --noinput | ||
- coverage run --source=logentry_admin `which django-admin.py` test logentry_admin | ||
- coverage report --show-missing --fail-under=90 | ||
- flake8 logentry_admin | ||
- tox -e $TOX_ENV | ||
after_success: | ||
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 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 |
---|---|---|
@@ -1,123 +1,29 @@ | ||
[tox] | ||
envlist = | ||
py3.4-django1.8, py3.3-django1.8, py3.2-django1.8, py2.7-django1.8, | ||
py3.4-django1.7, py3.3-django1.7, py3.2-django1.7, py2.7-django1.7, | ||
py3.3-django1.6, py3.2-django1.6, py2.7-django1.6, py2.6-django1.6, | ||
py3.3-django1.5, py3.2-django1.5, py2.7-django1.5, py2.6-django1.5, | ||
py2.7-django1.4, py2.6-django1.4, py2.5-django1.4, | ||
coverage, flake8 | ||
{py35,py34,py27}-django19, | ||
{py35,py34,py33,py32,py27}-django18, | ||
{py34,py33,py32,py27}-django17, | ||
coverage, | ||
flake8 | ||
|
||
[testenv] | ||
deps = | ||
django17: Django>=1.7,<1.8 | ||
django18: Django>=1.8,<1.9 | ||
django19: Django>=1.9,<1.10 | ||
setenv = | ||
PYTHONPATH = . | ||
DJANGO_SETTINGS_MODULE=test_settings | ||
commands= | ||
commands = | ||
django-admin.py test logentry_admin | ||
|
||
[testenv:coverage] | ||
deps=coverage | ||
commands= | ||
deps = coverage | ||
commands = | ||
django-admin.py migrate --noinput | ||
coverage run --source=logentry_admin {envbindir}/django-admin.py test logentry_admin | ||
coverage report --show-missing --fail-under=90 | ||
|
||
[testenv:flake8] | ||
deps=flake8 | ||
deps = flake8==2.5.1 | ||
commands = flake8 logentry_admin | ||
|
||
[testenv:py3.4-django1.8] | ||
basepython = python3.4 | ||
deps = Django==1.8a1 | ||
|
||
[testenv:py3.3-django1.8] | ||
basepython = python3.3 | ||
deps = Django==1.8a1 | ||
|
||
[testenv:py3.2-django1.8] | ||
basepython = python3.2 | ||
deps = Django==1.8a1 | ||
|
||
[testenv:py2.7-django1.8] | ||
basepython = python2.7 | ||
deps = Django==1.8a1 | ||
|
||
[testenv:py3.4-django1.7] | ||
basepython = python3.4 | ||
deps = Django==1.7 | ||
|
||
[testenv:py3.3-django1.7] | ||
basepython = python3.3 | ||
deps = Django==1.7 | ||
|
||
[testenv:py3.2-django1.7] | ||
basepython = python3.2 | ||
deps = Django==1.7 | ||
|
||
[testenv:py2.7-django1.7] | ||
basepython = python2.7 | ||
deps = Django==1.7 | ||
|
||
[testenv:py3.3-django1.6] | ||
basepython = python3.3 | ||
deps = | ||
Django==1.6.3 | ||
South==1.0 | ||
|
||
[testenv:py3.2-django1.6] | ||
basepython = python3.2 | ||
deps = | ||
Django==1.6.3 | ||
South==1.0 | ||
|
||
[testenv:py2.7-django1.6] | ||
basepython = python2.7 | ||
deps = | ||
Django==1.6.3 | ||
South==1.0 | ||
|
||
[testenv:py2.6-django1.6] | ||
basepython = python2.6 | ||
deps = | ||
Django==1.6.3 | ||
South==1.0 | ||
|
||
[testenv:py3.3-django1.5] | ||
basepython = python3.3 | ||
deps = | ||
Django==1.5.6 | ||
South==1.0 | ||
|
||
[testenv:py3.2-django1.5] | ||
basepython = python3.2 | ||
deps = | ||
Django==1.5.6 | ||
South==1.0 | ||
|
||
[testenv:py2.7-django1.5] | ||
basepython = python2.7 | ||
deps = | ||
Django==1.5.6 | ||
South==1.0 | ||
|
||
[testenv:py2.6-django1.5] | ||
basepython = python2.6 | ||
deps = | ||
Django==1.5.6 | ||
South==1.0 | ||
|
||
[testenv:py2.7-django1.4] | ||
basepython = python2.7 | ||
deps = | ||
Django==1.4.11 | ||
South==1.0 | ||
|
||
[testenv:py2.6-django1.4] | ||
basepython = python2.6 | ||
deps = | ||
Django==1.4.11 | ||
South==1.0 | ||
|
||
[testenv:py2.5-django1.4] | ||
basepython = python2.5 | ||
deps = | ||
Django==1.4.11 | ||
South==1.0 |