Add pre-commit hook for trailing-whitespace
[releng/global-jjb.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist = check-hooks,coala,jjb,jjb-compare-xml,license
4 skipsdist = true
5
6 [testenv:check-hooks]
7 deps = pre-commit
8 commands =
9     pre-commit install
10     pre-commit run --all-files
11
12 [testenv:coala]
13 basepython = python3
14 deps =
15     coala
16     coala-bears
17     # Markdown lint requires nodejs
18     nodeenv==1.1.2
19 commands =
20     nodeenv -p
21     npm install --global remark-cli remark-lint write-good
22     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
23     coala --non-interactive
24
25 [testenv:docs]
26 deps = -rrequirements.txt
27 commands =
28     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
29
30 [testenv:ensure-documented]
31 commands =
32     ./ensure-documented.sh
33
34 [testenv:jjb]
35 deps =
36     jenkins-job-builder>=2.0.5
37 commands =
38     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
39
40 [testenv:jjb-compare-xml]
41 deps =
42     jenkins-job-builder
43 commands =
44     ./jjb-compare-xml.sh
45
46 [testenv:license]
47 deps = lftools
48 commands = lftools license check-dir -r '.+' shell
49
50 #########
51 # Tools #
52 #########
53
54 [testenv:jenkins-jobs]
55 deps =
56     jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.0.9}
57 commands =
58     jenkins-jobs {posargs:--help}
59
60 [testenv:lftools]
61 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
62 commands = lftools {posargs:--help}
63
64 [testenv:openstack]
65 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
66 commands = openstack {posargs:--help}
67
68 [testenv:reno]
69 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.9.1}
70 commands = reno {posargs:--help}