aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: c359c54703e8c4f3bfa7b8e8e34b832badc6dc21 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tox]
envlist = docs,docs-linkcheck,py27,yamllint,pylint
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}

[testenv:pylint]
basepython = python2.7
commands = pylint --rcfile=tox.ini sfc

# pylintrc
[MESSAGES CONTROL]
disable=all

enable=F,E,unreachable,duplicate-key,unnecessary-semicolon,
       global-variable-not-assigned,unused-variable,binary-op-exception,
       bad-format-string,anomalous-backslash-in-string,bad-open-mode

[TYPECHECK]
ignored-classes=Connection