Merge "Create job to lock|unlock branches via Gerrit"
[releng/global-jjb.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index a880440..d5b6bae 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6
-envlist = coala
+envlist = coala,jjb,jjb-compare-xml,license
 skipsdist = true
 
 [testenv:coala]
@@ -8,6 +8,33 @@ basepython = python3
 deps =
     coala
     coala-bears
+    # Markdown lint requires nodejs
+    nodeenv
 commands =
+    nodeenv -p
+    npm install --global remark-cli remark-lint write-good
     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
     coala --non-interactive
+
+[testenv:jjb]
+deps =
+    jenkins-job-builder
+commands =
+    jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
+
+[testenv:jjb-compare-xml]
+deps =
+    jenkins-job-builder
+commands =
+    ./jjb-compare-xml.sh
+
+[testenv:license]
+deps = lftools
+commands = lftools license check-dir -r '.+' shell
+
+[testenv:update-expected-xml]
+deps =
+    jenkins-job-builder
+commands =
+    jenkins-jobs test --recursive -o {toxinidir}/.jjb-test/expected-xml {toxinidir}/jjb:{toxinidir}/.jjb-test
+