summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: b0d1a94eb439b7400671fb617f7210b7bdf9663c (plain)
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
# this will used to integrate with other components in parser
# such as verigraph
[tox]
minversion = 1.6
envlist = py27,pep8,docs,docs-linkcheck
skipsdist = True

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
   VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt

[testenv:ht]
whitelist_externals =
    bash
commands =
    bash -c 'cd tosca2heat/heat-translator; tox'

[testenv:tp]
whitelist_externals =
    bash
commands =
    bash -c 'cd tosca2heat/tosca-parser; tox'

[testenv:docs]
deps = -rdocs/requirements.txt
commands =
    sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html

[testenv:docs-linkcheck]
deps = -rdocs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck