forked from DLR-RM/RAFCON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (49 loc) · 1.45 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py27, py34, py35, py35, py37, coverage, docs, check
skip_missing_interpreters = true
usedevelop = true
isolated_build = true
[testenv]
# pycairo needs to be installed first to be able to install PyGObject via pip
deps =
pycairo<2.0.0,>=1.10.0
extras =
testing
commands = pytest {posargs:-vx -m "(core or gui or share_elements) and not unstable"} --basetemp={envtmpdir}
passenv =
DISPLAY
XAUTHORITY
HOME
XDG_DATA_HOME
XDG_DATA_DIRS
setenv =
PIP_DISABLE_VERSION_CHECK = 1
RAFCON_START_MINIMIZED = 1
[testenv:py34]
# Python 3.4 requires pip==8 to ignore gaphas' minimum Python 3.5 requirement
deps =
{[testenv]deps}
pip==8
[testenv:coverage]
basepython = python2.7
deps =
{[testenv]deps}
pytest-cov
commands = {[testenv]commands} --cov=rafcon --cov-report xml:pytest-cov_results.xml
[testenv:docs]
# TODO: Integrate this with Jenkins: https://blog.cihar.com/archives/2016/04/20/testing-sphinx-documentation-jenkins/
basepython = python2.7
deps =
{[testenv]deps}
Sphinx>=1.4
commands =
sphinx-build -b html -E doc build_doc
- sphinx-build -b linkcheck doc build_doc
[testenv:check]
skip_install = true
deps = twine>=1.12
commands = twine check {distdir}/*