summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2016-09-15 14:16:43 +0530
committerNigel Babu <nigelb@redhat.com>2016-09-16 05:45:16 -0700
commit7b85128867bb33af7230873c20a72c615be68a94 (patch)
tree2dcdebbaf1a1b79fadb0290298eb8d231c9ff339
parent9459921f61e30c0b593c4c3abcfcc893e65b87f8 (diff)
Add basic testing for JJB jobs
This will make sure that the JJB jobs are syntactically correct Change-Id: I634cd77f53e5a64f4433f8d9c1a5e66a1ac8a753 Signed-off-by: Nigel Babu <nigelb@redhat.com>
-rw-r--r--.gitignore2
-rw-r--r--requirements.txt1
-rw-r--r--setup.py5
-rw-r--r--tox.ini14
4 files changed, 22 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..670b411
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.egg-info
+.tox
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000..6b700dc
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1 @@
+jenkins-job-builder
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..23e6f53
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,5 @@
+from setuptools import setup
+setup(
+ name = "build-jobs",
+ version = "0.1",
+)
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..8105c80
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,14 @@
+# Tox (http://tox.testrun.org/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
+# test suite on all supported python versions. To use it, "pip install tox"
+# and then run "tox" from this directory.
+
+[tox]
+envlist = py26,py27
+skip_missing_interpreters = true
+
+[testenv]
+deps = -r{toxinidir}/requirements.txt
+
+[testenv:jjb]
+commands = jenkins-jobs test {toxinidir}/jenkins/jobs