mirror of
https://github.com/jazzband/django-authority.git
synced 2026-03-16 22:20:28 +00:00
Use tox-travis and drop support for Python 3.3. Also coverage.
This commit is contained in:
parent
5d466ac318
commit
0945016e59
3 changed files with 13 additions and 22 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -5,3 +5,4 @@ docs/build/*
|
|||
.DS_Store
|
||||
.tox/
|
||||
dist/
|
||||
build/
|
||||
|
|
|
|||
21
.travis.yml
21
.travis.yml
|
|
@ -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
13
tox.ini
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue