Add run-docs role and tox-docs job

Change-Id: I0bdb5b461950533880157c09463a3256967c81c7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
diff --git a/.zuul.yaml b/.zuul.yaml
index ed66422..e2eea68 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -21,6 +21,10 @@
     voting: false
 
 - job:
+    name: tox-docs
+    parent: tox
+
+- job:
     name: tox-linters
     parent: tox
 
@@ -32,6 +36,7 @@
     name: openstack-infra/zuul
     check:
       jobs:
+        - tox-docs
         - tox-cover
         - tox-linters
         - tox-py27
diff --git a/playbooks/roles/run-docs/defaults/main.yaml b/playbooks/roles/run-docs/defaults/main.yaml
new file mode 100644
index 0000000..5855a3d
--- /dev/null
+++ b/playbooks/roles/run-docs/defaults/main.yaml
@@ -0,0 +1,2 @@
+---
+run_docs_envlist: venv
diff --git a/playbooks/roles/run-docs/tasks/main.yaml b/playbooks/roles/run-docs/tasks/main.yaml
new file mode 100644
index 0000000..3266f2b
--- /dev/null
+++ b/playbooks/roles/run-docs/tasks/main.yaml
@@ -0,0 +1,4 @@
+- name: Execute run-docs.sh.
+  shell: "/usr/local/jenkins/slave_scripts/run-docs.sh {{ run_docs_envlist }}"
+  args:
+    chdir: "/home/zuul/workspace/src/{{ zuul.project }}"
diff --git a/playbooks/tox-docs.yaml b/playbooks/tox-docs.yaml
new file mode 100644
index 0000000..98b3313
--- /dev/null
+++ b/playbooks/tox-docs.yaml
@@ -0,0 +1,3 @@
+- hosts: all
+  roles:
+    - run-docs