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