-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
40 lines (35 loc) · 818 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
[tox]
envlist =
py{36}
coverage-report
docs
pre-commit
[travis]
python =
3.6: py36, docs, coverage-report, pre-commit
[testenv]
setenv =
COVERAGE_FILE=.coverage.{envname}
deps = -r./requirements/dev.txt
install_command = pip install --no-cache-dir {opts} {packages}
commands =
py.test --basetemp={envtmpdir} --cov {envsitepackagesdir}/w90utils {posargs}
[testenv:docs]
whitelist_externals = make
changedir = ./docs/
deps = -r./requirements/dev.txt
skip_install = true
commands =
make html
[testenv:coverage-report]
setenv =
COVERAGE_FILE=
deps = -r./requirements/dev.txt
skip_install = true
commands =
coverage combine
coverage report
[testenv:pre-commit]
skip_install = true
deps = -r./requirements/dev.txt
commands = pre-commit run --all-files --show-diff-on-failure