-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
78 lines (69 loc) · 1.6 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[tox]
envlist = inst,setup,py35,py36,py38-dev,lint,doc,stats
skip_missing_interpreters = True
[travis]
python =
3.6: py36, inst, setup, unit, lint, doc
3.7: py37, inst, setup, unit, lint, doc
3.8: py38-dev, inst, setup, unit, lint, doc
# test that it can be installed with custom commands and clean env
[testenv:inst]
skip_install = True
commands =
- pip install .
ignore_errors = True
recreate = True
[testenv:setup]
skip_install = True
commands = python setup.py install
recreate = True
[testenv:unit]
deps = .[test]
commands =
coverage run -a --rcfile={toxinidir}/.coveragerc --source=opgpcard -m pytest \
-s {toxinidir}/tests -vv
[testenv:doc]
deps = .[doc]
whitelist_externals = make
changedir = docs
commands =
make html
make man
# this requires Internet, it should not be in envlist
[testenv:doclinks]
deps = .[doc]
whitelist_externals = make
changedir = docs
commands =
make linkcheck
[testenv:lint]
skip_install = True
deps = .[dev]
# no restructuredtext_lint in ubuntu
; restructuredtext_lint
# check-manifest
commands =
# check-manifest
; rst-lint README.rst CHANGELOG.rst
; flake8 --max-line-length 79 --exclude opgpcard/data, docs/source/conf.py
flake8 opgpcard tests
[testenv:stats]
skip_install = True
changedir={toxinidir}
deps = .[test]
# codecov
commands=
# nothing to combine while not using several python versions
# coverage combine
coverage report
coverage html
# only to run from travis
# codecov
# coveralls
[testenv:clean]
skip_install = True
changedir={toxinidir}
deps =
coverage
commands=
coverage erase