-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
44 lines (37 loc) · 768 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
[tox]
envlist = py36,py37,pep8
skipsdist = true
# This env is for common settings across all tests envs
[testenv:prep]
# Preparation command to install all development and testing
# dependencies before run actuall command.
commands = make install-dev
[testenv]
basepython = python3
setenv =
SETTINGS_PATH={toxinidir}/settings.conf
FLASK_ENV=testing
DEBUG=0
TESTING=1
FLASK_APP={toxinidir}/app.py
commands =
{[testenv:prep]commands}
make test
whitelist_externals =
make
[testenv:py36]
basepython = python3.6
[testenv:py37]
basepython = python3.7
[testenv:pep8]
commands =
{[testenv:prep]commands}
make lint
[testenv:cover]
commands =
{[testenv:prep]commands}
make coverage
[testenv:docs]
commands =
{[testenv:prep]commands}
make docs