forked from criteo/py-consul
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
26 lines (23 loc) · 695 Bytes
/
Copy pathtox.ini
File metadata and controls
26 lines (23 loc) · 695 Bytes
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
[tox]
envlist = lint,py10,py11,py12,py13,py14
toxworkdir = {env:TEMPDIR:/tmp/.tox}-{env:JOB_NAME:build}-{env:BUILD_NUMBER:current}/{env:BUILD_ID:unknown}
[testenv]
deps =
-r tests-requirements.txt
commands =
coverage erase
pytest -nauto --reruns=3 tests
coverage report
# Linter environment
[testenv:lint]
deps = -r tests-requirements.txt
commands =
pre-commit run --all-files
# Bundle environment puts stuff in 'dist'.
[testenv:bundle]
skip_install = True
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 --dist-dir=dist --format=gztar