-
Notifications
You must be signed in to change notification settings - Fork 39
/
tox.ini
57 lines (49 loc) · 1.07 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
[tox]
envlist = py3,docs
[testenv:py3]
passenv=PIP_CACHE_DIR
commands = {toxinidir}/scripts/check_style.sh
flake8
pytest -vvv \
--junit-xml=lago.junit.xml \
--cov {envsitepackagesdir}/lago \
--cov-report html \
--cov-report term \
--cov-report xml \
tests/unit
deps =
-r{toxinidir}/test-requires.txt
sitepackages = true
whitelist_externals = /bin/bash
[testenv:sdist]
passenv=PIP_CACHE_DIR
deps =
{toxinidir}/exported-artifacts/lago*.tar.gz
commands = lago --version
whitelist_externals = /bin/bash
sitepackages = true
[testenv:docs]
passenv=PIP_CACHE_DIR HOME
setenv =
LC_ALL = C
skip_install=True
changedir = docs
commands = make clean
make html
deps =
-r{toxinidir}/docs/docs-requires.txt
whitelist_externals = make
/bin/bash
[flake8]
exclude =
.eggs/,
.tox/,
.git/,
*.pyc,
docs/,
exported-artifacts/,
rpmbuild/
show_source = True
statistics = True
output-file = flake8.txt
tee = True