Add numpy to tox.ini
[releng/global-jjb.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist =
4   coala,
5   ensure-documented,
6   jjb,
7   jjb-compare-xml,
8   jjb-latest,
9   jjb-version
10   license
11 skipsdist = true
12 passenv = TOX_WORK_DIR
13 toxworkdir = {env:TOX_WORK_DIR:/tmp/v}
14
15 [testenv:coala]
16 basepython = python3
17 deps =
18     coala
19     coala-bears
20     pygments~=2.3.1
21     # request-2.22.0 does not work with python-3.4.9
22     requests~=2.21.0
23     # Markdown lint requires nodejs
24     nodeenv
25     numpy
26 commands =
27     nodeenv -p
28     npm install --global remark-cli remark-lint write-good
29     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
30     coala --non-interactive
31
32 [testenv:docs]
33 deps = -rrequirements.txt
34 commands =
35     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
36
37 [testenv:ensure-documented]
38 commands =
39     ./ensure-documented.sh
40
41 [testenv:jjb]
42 deps =
43     jenkins-job-builder==2.8.0
44 commands =
45     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
46
47 [testenv:jjb-compare-xml]
48 deps =
49     jenkins-job-builder
50 commands =
51     ./jjb-compare-xml.sh
52
53 [testenv:jjb-latest]
54 deps =
55     jenkins-job-builder
56 commands =
57     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
58
59 [testenv:jjb-version]
60 commands = python {toxinidir}/check_jjb_version.py
61
62 [testenv:license]
63 deps = lftools
64 commands = lftools license check-dir -r '.+' shell
65
66 #########
67 # Tools #
68 #########
69
70 [testenv:jenkins-jobs]
71 deps =
72     jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.8.0}
73 commands =
74     jenkins-jobs {posargs:--help}
75
76 [testenv:lftools]
77 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
78 commands = lftools {posargs:--help}
79
80 [testenv:openstack]
81 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
82 commands = openstack {posargs:--help}
83
84 [testenv:reno]
85 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.10.0}
86 commands = reno {posargs:--help}