-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
32 lines (29 loc) · 914 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
[tox]
envlist = py3-test,lint
toxworkdir={env:TEMPDIR:/tmp/.tox}-{env:JOB_NAME:build}-{env:BUILD_NUMBER:current}/{env:BUILD_ID:unknown}
[testenv]
deps =
-rrequirements/tests.txt
commands =
coverage erase
coverage run -m pytest -vv --junitxml=junit-{envname}.xml --ignore={toxworkdir}
coverage report --omit={toxworkdir}/*,netprobify/protocol/common/patch.py
coverage html --directory=coverage-{envname} --omit={toxworkdir}/*
# Linter environment
[testenv:lint]
deps =
pylama
black
skip_install = True
commands =
pylama
black --check .
# Bundle environment puts stuff in 'dist'.
[testenv:bundle]
basepython = {env:PYTHON:python}
deps = pex
commands =
# Creates a source archive in sdist/.
{envpython} setup.py sdist --dist-dir=sdist --format=gztar
# Puts binary archives in dist/.
{envpython} setup.py bdist_pex --bdist-dir=dist --pex-args='--pre --disable-cache' --bdist-all