forked from concentricsky/badgr-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
46 lines (31 loc) · 941 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
40
41
42
43
44
45
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py27,flake8
[testenv]
deps =
-rrequirements.txt
coverage
flake8
setenv =
DJANGO_SETTINGS_MODULE=mainsite.settings_tests
commands =
pip install -U pip
pip install -r requirements.txt
coverage erase
coverage run --branch --omit={envdir}/*,build/*,*/migrations/*.py manage.py test --noinput
; Write coverage report to console
coverage report -i
; Write html report for benefit of Jenkins coverage plugin
coverage html -i --directory={toxinidir}/htmlcov/
[testenv:flake8]
deps =
flake8
commands =
- flake8 --statistics
[flake8]
ignore = E226,E501
max-line-length = 120
exclude = .git,.tox,__pycache__,build,dist