aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: a92fccf219c394a4ce5ec3602474e09357ac34e8 (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
35
36
37
38
39
40
41
42
43
[tox]
envlist = docs,docs-linkcheck,py27,yamllint
skipsdist = True

[testenv]
usedevelop = False
setenv=
  HOME = {envtmpdir}
  PYTHONPATH = {toxinidir}
deps =
  -chttps://raw.githubusercontent.com/openstack/requirements/stable/queens/upper-constraints.txt
  -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=master
  -r{toxinidir}/test-requirements.txt
  -r{toxinidir}/requirements.txt
install_command = pip install {opts} {packages}

[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
commands =
    sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/html
    echo "Generated docs available in {toxinidir}/docs/_build/html"
whitelist_externals = echo

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

[testenv:py27]
commands = nosetests --with-xunit \
  --with-coverage \
  --cover-tests \
  --cover-package=sfc \
  --cover-xml \
  --cover-html \
  sfc/unit_tests/unit

[testenv:yamllint]
basepython = python2.7
files =
  docs
  sfc/tests/functest
commands =
  yamllint -s {[testenv:yamllint]files}