forked from fedora-infra/fmn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (40 loc) · 1015 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]
envlist = lint,py3{7,8,9},diff-cover,docs
skip_missing_interpreters = True
[testenv]
deps =
-rrequirements.txt
-rdev-requirements.txt
whitelist_externals =
rm
commands =
rm -rf htmlcov coverage.xml
py.test --cov-config .coveragerc --cov=fmn --cov-report term \
--cov-report xml --cov-report html {posargs}
[testenv:diff-cover]
commands =
diff-cover coverage.xml --compare-branch=origin/develop --fail-under=100
[testenv:docs]
basepython=python3
changedir = docs
whitelist_externals =
mkdir
rm
cp
commands=
rm -rf _build/
mkdir -p _static
mkdir -p images
cp -r ../fedmsg.d .
python create_db_schema
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:lint]
basepython=python3
deps =
flake8 > 3.0
commands =
python -m flake8 fmn/ {posargs}
[flake8]
show-source = True
max-line-length = 100
exclude = .git,.tox,dist,*egg,docs,alembic,ansible,setup.py,fmn/lib/,fmn/rules,fmn/web/,fedmsg.d/fmn.py,fmn/consumer.py