mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Chore -- Update testing (#126)
* Ignore new testing related files * Add tox testing, coverage and codecov integration. Drop Django 1.9 testing as support officially ended in April, Add Django 1.11 testing, the new LTS version of Django Add testing against Django for each versions supported python versions. Remove Django from requirements, install handled through tox for tests and regular repositories do not need us to install Django for them or enforce a django version, they can choose to use a supported version or not. * Update for python 3.6 tests
This commit is contained in:
parent
7736f40dd1
commit
ac8638dadd
5 changed files with 56 additions and 13 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -6,4 +6,7 @@
|
|||
.idea
|
||||
.project
|
||||
.pydevproject
|
||||
.coverage
|
||||
venv/
|
||||
.tox/
|
||||
local_settings.py
|
||||
|
|
|
|||
40
.travis.yml
40
.travis.yml
|
|
@ -1,14 +1,30 @@
|
|||
# Config file for automatic testing at travis-ci.org
|
||||
|
||||
dist: trusty
|
||||
sudo: required
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.4"
|
||||
python: 3.6
|
||||
|
||||
env:
|
||||
- DJANGO_VERSION=1.8.*
|
||||
- DJANGO_VERSION=1.9.*
|
||||
- DJANGO_VERSION=1.10.*
|
||||
- DJANGO_VERSION=1.11a1
|
||||
install:
|
||||
- "pip install -r requirements.txt"
|
||||
- "pip install Django==$DJANGO_VERSION"
|
||||
script: "python src/runtests.py"
|
||||
sudo: false
|
||||
- TOX_ENV=py36-django-18
|
||||
- TOX_ENV=py35-django-18
|
||||
- TOX_ENV=py34-django-18
|
||||
- TOX_ENV=py27-django-18
|
||||
- TOX_ENV=py36-django-110
|
||||
- TOX_ENV=py35-django-110
|
||||
- TOX_ENV=py34-django-110
|
||||
- TOX_ENV=py27-django-110
|
||||
- TOX_ENV=py36-django-111
|
||||
- TOX_ENV=py35-django-111
|
||||
- TOX_ENV=py34-django-111
|
||||
- TOX_ENV=py27-django-111
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
||||
install: pip install -r requirements-test.txt
|
||||
|
||||
script: tox -e $TOX_ENV
|
||||
|
||||
after_success:
|
||||
- codecov -e TOX_ENV
|
||||
|
|
|
|||
5
requirements-test.txt
Normal file
5
requirements-test.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
-r requirements.txt
|
||||
|
||||
coverage==4.3.4
|
||||
tox>=1.7.0
|
||||
codecov>=2.0.0
|
||||
|
|
@ -1,2 +1 @@
|
|||
Django>=1.8
|
||||
django-jsonfield>=1.0.0
|
||||
|
|
|
|||
20
tox.ini
Normal file
20
tox.ini
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[tox]
|
||||
envlist =
|
||||
{py27,py34,py35,py36}-django-18
|
||||
{py27,py34,py35,py36}-django-110
|
||||
{py27,py34,py35,py36}-django-111
|
||||
|
||||
[testenv]
|
||||
setenv =
|
||||
PYTHONPATH = {toxinidir}:{toxinidir}/src/auditlog
|
||||
commands = coverage run --source src/auditlog src/runtests.py
|
||||
deps =
|
||||
django-18: Django>=1.8,<1.9
|
||||
django-110: Django>=1.10,<1.11
|
||||
django-111: Django>=1.11
|
||||
-r{toxinidir}/requirements-test.txt
|
||||
basepython =
|
||||
py36: python3.6
|
||||
py35: python3.5
|
||||
py34: python3.4
|
||||
py27: python2.7
|
||||
Loading…
Reference in a new issue