forked from girder/girder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
50 lines (46 loc) · 1.78 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
[tox]
envlist = py{27,35,36},docs
skip_missing_interpreters = true
toxworkdir = {toxinidir}/build/test/tox
[testenv]
deps = -rrequirements-dev.txt
install_command = pip install --upgrade --upgrade-strategy eager {opts} {packages}
commands = pytest {posargs}
[testenv:docs]
# Building docs has a direct dependency on Sphinx. Additionally, to ensure import-time logic in
# girder executes correctly, funcsigs and six should be installed and not be mocked during
# documentation import / building. Finally, documentation dependencies are listed in a separate file
# to allow readthedocs.org to read and install them.
deps = -rdocs/requirements-docs.txt
# readthedocs.org runs "python setup.py install" (which installs no dependencies). With the
# limitations of Tox (not being able to use a different install_command for deps installation and
# package installation) and the desire to install cleanly via pip (instead of directly with
# setuptools), skip_install and an explicit "pip install" run command seems to be the best
# configuration possible.
skip_install = true
# In combination with skip_install, usedevelop just prevents Tox from creating an sdist.
usedevelop = true
commands =
pip install --no-deps --editable . --editable clients/python
sphinx-build \
-W \
-b html \
-d {envtmpdir}/doctrees \
docs \
build/docs/python
[testenv:circleci-py27]
basepython = python2.7
commands = pytest \
--tb=long \
--junit-xml="build/test/results/pytest-2.7.xml" \
--cov-append \
--keep-db \
{posargs}
[testenv:circleci-py35]
basepython = python3.5
commands = pytest \
--tb=long \
--junit-xml="build/test/results/pytest-3.5.xml" \
--cov-append \
--keep-db \
{posargs}