-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
64 lines (56 loc) · 1.77 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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.
# {py27}-django{111}
[tox]
skipsdist = true
envlist =
{py31,py35}-django{111,20}
{py36}-django{111,20}
flake8
[cleanup]
commands =
find {toxinidir}/tests -type f -name "*.pyc" -delete
find {toxinidir}/tests -type d -name "__pycache__" -delete
find {toxinidir}/easy_api -type f -name "*.pyc" -delete
find {toxinidir}/easy_api -type d -name "__pycache__" -delete
find {toxinidir}/EasyAPI -type f -name "*.pyc" -delete
find {toxinidir}/EasyAPI -type d -name "__pycache__" -delete
find {toxinidir}/widgets -type f -name "*.pyc" -delete
find {toxinidir}/widgets -type d -name "__pycache__" -delete
find {toxinidir}/purchases -type f -name "*.pyc" -delete
find {toxinidir}/purchases -type d -name "__pycache__" -delete
find {toxinidir}/customers -type f -name "*.pyc" -delete
find {toxinidir}/customers -type d -name "__pycache__" -delete
[testenv]
whitelist_externals =
find
setenv =
PYTHONWARNINGS=once::DeprecationWarning
commands =
coverage run ./runtests.py
coverage report -m --omit=./.tox/*
{[cleanup]commands}
deps =
pytz
coverage
factory-boy
djangorestframework
django_filter
django111: Django>=1.11,<2.0
django20: Django>=2.1
[testenv:flake8]
changedir = {toxinidir}
commands =
flake8 .. --exclude=migrations,.tox,build,lib,bin,include,node_modules
{[cleanup]commands}
deps = flake8
[testenv:py27]
basepython = python2.7
[testenv:py31]
basepython = python3.1
[testenv:py35]
basepython = python3.5
[testenv:py36]
basepython = python3.6