-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
44 lines (39 loc) · 989 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
[tox]
envlist = py26, docs, lint, coverage
[testenv]
envlogdir = /tmp/toxlogdir
envtmpdir = /tmp/toxtmpdir
commands =
{envpython} --version
trial --version
trial --temp=/tmp/_trial_temp smartanthill
[testenv:develop]
usedevelop = True
deps =
isort
flake8
commands =
pip install --egg scons
[testenv:docs]
deps =
sphinx
sphinx_rtd_theme
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex
/bin/bash -c "if [[ $CI != 'true' ]]; then sphinx-build -W -b linkcheck docs docs/_build/html; fi"
[testenv:lint]
deps =
flake8
pylint
commands =
flake8 ./smartanthill
pylint --rcfile=./.pylintrc ./smartanthill
[testenv:coverage]
deps =
coverage
python-coveralls
commands =
coverage run {envdir}/bin/trial --temp=/tmp/_trial_temp smartanthill
coverage html
/bin/bash -c "if [[ $CI == 'true' ]]; then coveralls; fi"