-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
47 lines (41 loc) · 1 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
[tox]
envlist = py35, py36, py37, py38
[flake8]
exclude = .tox/*, .git/*, .venv/*
max-line-length = 120
statistics = True
[testenv]
install_command = pip install -U {opts} {packages}
deps =
-rrequirements_dev.txt
commands =
{envbindir}/flake8
{envbindir}/coverage run --source datarefinery -m py.test tests
{envbindir}/coverage report -m --fail-under 80
{envbindir}/coverage html
[testenv:doc]
changedir = docs
deps =
-rrequirements_doc.txt
commands =
{envbindir}/sphinx-build -d build/doctrees source build/html
[testenv:build]
commands =
{envbindir}/python setup.py sdist bdist_wheel
[testenv:release]
passenv =
TWINE*
deps =
twine
commands =
# Pass credentials as arguments (-u user -p password, defaults to envs: TWINE_USERNAME and TWINE_PASSWORD)
{envbindir}/python setup.py sdist bdist_wheel
{envbindir}/twine upload --skip-existing dist/*
[testenv:codecov]
passenv =
CODECOV*
deps =
codecov
commands =
# Pass CODECOV_TOKEN env variable
codecov