-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
43 lines (35 loc) · 1.04 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
[tox]
envlist=py27,py3,pylint,doc,examples-py27,examples-py3
[testenv]
usedevelop=true
deps=-rtest/requirements.txt
commands=py.test --cov=starman --cov-report=term --cov-report=html {posargs}
# py3 == whichever Python 3 is the system default
[testenv:py3]
basepython=python3
# We lint with Python 3 because, hey, it's the future. We also pin a specific
# pylint version to make sure that we don't get test failure noise on PRs, etc,
# due to new pylint checks.
[testenv:pylint]
basepython=python3
deps=pylint==1.5.4
commands=pylint starman
[testenv:doc]
basepython=python3
deps=-rdoc/requirements.txt
commands=sphinx-build -T -b html doc build/html
[testenv:doc-latex]
basepython={[testenv:doc]basepython}
deps={[testenv:doc]deps}
commands=sphinx-build -T -b latex doc build/html
[examples]
deps=-rexample/requirements.txt
commands={toxinidir}/example/run_all.sh
[testenv:examples-py27]
basepython=python2.7
deps={[examples]deps}
commands={[examples]commands}
[testenv:examples-py3]
basepython=python3
deps={[examples]deps}
commands={[examples]commands}