Deploy CI/CD toolchains for any Xtesting-based project 91/65891/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Mon, 10 Dec 2018 20:38:43 +0000 (21:38 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 16 Dec 2018 06:32:20 +0000 (07:32 +0100)
It allows deploying the CI/CD toolchain via ansible for all projects
based on Xtesting (e.g. OPNFV Functest, ONAP robot tests, etc.).

It deploys Jenkins, Minio and S3www and loads all jobs in Jenkins.
Last components (MongoDB, TestAPI and dashboard) will be deployed in
the next update of the ansible role.

To deploy the testing toolchain:
$ ansible-galaxy install collivier.xtesting
$ ansible-playbook ansible/site.yml

Change-Id: I5a8ddb45fc354c9a22c52f0d42ce2e0181f345b7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit da22164eda930726eef5e827885e9f1798c4d7e7)

ansible/site.yml [new file with mode: 0644]
tox.ini

diff --git a/ansible/site.yml b/ansible/site.yml
new file mode 100644 (file)
index 0000000..24b2ac9
--- /dev/null
@@ -0,0 +1,14 @@
+---
+- hosts: 127.0.0.1
+  roles:
+    - role: collivier.xtesting
+      suites:
+        - repo: opnfv
+          container: xtesting
+          tag: gambia
+          tests:
+            - first
+            - second
+            - third
+            - fourth
+            - fifth
diff --git a/tox.ini b/tox.ini
index ce3e958..e76005b 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -38,6 +38,7 @@ commands =
 basepython = python2.7
 files =
   .travis.yml
+  ansible
   xtesting/ci
 commands =
   yamllint -s {[testenv:yamllint]files}