forked from dipcode-software/django-tables2-reports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (35 loc) · 843 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[tox]
skipsdist = True
envlist = {py27}-django{111}, flake8
[testenv]
deps = -r{toxinidir}/requirements/tests.txt
commands = {envpython} runtests.py
[testenv:flake8]
deps = flake8
commands = flake8 {toxinidir}/django_tables2_reports --exclude=*/migrations/*
[testenv:coverage]
deps=
-r{toxinidir}/requirements/tests.txt
coverage
basepython=python2.7
setenv=
PYTHONWARNINGS=ignore
commands=
coverage run runtests.py {posargs:}
coverage report
coverage erase
[testenv:travis]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH CODACY_PROJECT_TOKEN
deps =
-r{toxinidir}/requirements/tests.txt
coverage
coveralls
codacy-coverage
setenv =
PYTHONWARNINGS=ignore
commands =
coverage run runtests.py {posargs:}
coverage report
coverage xml
coveralls
python-codacy-coverage -r coverage.xml