-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
70 lines (60 loc) · 1.64 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[tox]
envlist = py26,py27,py36,py37,py38,static,docs,pidiff
[testenv]
passenv = COVERALLS_REPO_TOKEN CIRCLECI CIRCLE_* CI_PULL_REQUEST
deps=
-rrequirements.txt
-rtest-requirements.txt
commands=
pytest --cov-report=html --cov=more_executors -v \
--junit-xml=test-results/more_executors/junit.xml {posargs}
whitelist_externals=sh
[testenv:py26]
# no dependency pinning on python2
deps=
-rtest-requirements.in
basepython=python2.6
# For python 2.6, we'll avoid having coverage enabled
# because it slows down the execution a lot
commands=
pytest -v \
--junit-xml=test-results/more_executors/junit.xml {posargs}
[testenv:py27]
deps=
-rtest-requirements.in
prometheus-client==0.9.0
basepython=python2.7
[testenv:static]
commands=
sh -c 'pylint more_executors tests; test $(( $? & (1|2|4|32) )) = 0'
[testenv:docs]
deps=-rdocs-requirements.txt
whitelist_externals=sh
use_develop=true
commands=
sh -c '\
sphinx-build \
-D version="$(python ./setup.py --version), revision $(git rev-parse --short HEAD)" \
docs docs/_build \
'
[testenv:pidiff]
deps=-rpidiff-requirements.txt
commands=
pidiff more-executors .
[testenv:revdep-pulplib]
whitelist_externals=sh
use_develop=true
commands=
sh -c 'scripts/revdep-test https://github.com/release-engineering/pubtools-pulplib.git'
[testenv:revdep-fastpurge]
whitelist_externals=sh
use_develop=true
commands=
sh -c 'scripts/revdep-test https://github.com/release-engineering/python-fastpurge.git'
[testenv:revdep-ubipop]
whitelist_externals=sh
use_develop=true
commands=
sh -c 'scripts/revdep-test https://github.com/release-engineering/ubi-population-tool.git'
[flake8]
max-line-length = 100