-
Notifications
You must be signed in to change notification settings - Fork 16
/
tox.ini
49 lines (42 loc) · 875 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[tox]
minversion = 1.8
envlist =
py{27,34,35,36}-unit
lint
format-check
doc
py{27,36}-build
skipsdist = true
[travis]
python =
2.7: py27-unit, lint, format-check, bats
3.4: py34-unit, lint, format-check, bats
3.5: py35-unit, lint, format-check, bats
3.6: py36-unit, lint, format-check, bats
[testenv]
passenv = *
setenv = COVERAGE_FILE={toxworkdir}/.coverage
deps =
-rrequirements.txt
-rrequirements-test.txt
commands =
unit: py.test -vv
build: python setup.py sdist bdist_wheel
[testenv:lint]
commands =
flake8
[testenv:format]
commands =
yapf -i -r giturlparse// test/
[testenv:format-check]
commands =
yapf -d -r giturlparse/ test/
[testenv:doc]
passenv = *
deps=
-rrequirements-doc.txt
commands=
python setup.py build_sphinx --builder=html
[testenv:release]
commands=
twine upload dist/*