Use tox-travis and drop support for Python 3.3. Also coverage.

This commit is contained in:
Jannis Leidel 2018-01-28 14:27:53 +01:00
parent 5d466ac318
commit 0945016e59
No known key found for this signature in database
GPG key ID: C795956FB489DCA9
3 changed files with 13 additions and 22 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ docs/build/*
.DS_Store
.tox/
dist/
build/

View file

@ -1,19 +1,12 @@
language: python
python: 3.5
python:
- 2.7
- 3.4
- 3.5
sudo: false
cache:
directories:
- "~/.cache/pip"
env:
matrix:
- TOXENV=py27-dj18
- TOXENV=py34-dj18
- TOXENV=py35-dj18
- TOXENV=py27-dj111
- TOXENV=py34-dj111
- TOXENV=py35-dj111
cache: pip
install:
- pip install tox codecov
- pip install tox-travis codecov
script: tox -v
after_success:
- codecov
@ -26,5 +19,5 @@ deploy:
secure: TZJdf9naBzdkE+HDyhtoCIIc0ddEXLWW/VUD975gJUWQpOA69h4ZjCCQ6z21AZdrWczCUh6/cOLYYSoC9OeaHqF+Jzunn3iEomvdVRsW7SX7MAxTFUENQHF3S3j8fYlqIPWvNDOgxJ/AERisMUSZkRKWIYjEInYo31RoJ1ySN0w=
on:
tags: true
condition: "$TOXENV = py27-dj18"
python: 3.5
repo: jazzband/django-authority

13
tox.ini
View file

@ -3,18 +3,15 @@ skipsdist = True
usedevelop = True
minversion = 1.8
envlist =
py{27,33,34,35}-dj{18,19,110,111}
py{27,34,35}-dj{18,19,110,111}
[testenv]
basepython =
py27: python2.7
py33: python3.3
py34: python3.4
py35: python3.5
usedevelop = true
commands = python example/manage.py test authority exampleapp
commands =
coverage run -a --source=authority example/manage.py test authority exampleapp
coverage report
deps =
dj18: Django<1.9
dj19: Django<1.10
dj110: Django<1.11
dj111: Django<1.12
dj111: Django<2.0