forked from gdcc/pyDataverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (38 loc) · 1.18 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
[tox]
envlist = py36,coverage,packaging,docs,flake8
skip_missing_interpreters = True
ignore_basepython_conflict = True
[testenv]
usedevelop = True
passenv = *
basepython = python3.6
deps = -r{toxinidir}/tools/tests-requirements.txt
commands =
pytest tests/ --cov=src/pyDataverse --basetemp={envtmpdir}
[testenv:coverage]
basepython = python3.6
deps = -r{toxinidir}/tools/tests-requirements.txt
commands =
pytest tests/ --cov=src/pyDataverse --cov-report=term-missing --cov-report=xml --cov-report=html
[testenv:packaging]
usedevelop = True
basepython = python3.6
skip_install = True
deps = -r{toxinidir}/tools/packaging-requirements.txt
commands =
twine check -h
[testenv:flake8]
usedevelop = True
basepython = python3.6
deps = -r{toxinidir}/tools/lint-requirements.txt
commands =
flake8 src/pyDataverse/
flake8 tests/
isort --check-only --diff src/pyDataverse
skip_install = true
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.6
deps = -r{toxinidir}/tools/docs-requirements.txt
commands =
sphinx-build -d src/pyDataverse/docs/build/docs_doctree src/pyDataverse/docs/source src/pyDataverse/docs/build/html --color -b html {posargs}