]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-medic-tests: a job to run nightly tests for ceph-medic 782/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 7 Jul 2017 20:37:40 +0000 (15:37 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 7 Jul 2017 20:37:40 +0000 (15:37 -0500)
This uses a job-template so as we build more testings scenarios
they can be added here easily.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-medic-tests/build/build [new file with mode: 0644]
ceph-medic-tests/config/definitions/ceph-medic-tests.yml [new file with mode: 0644]

diff --git a/ceph-medic-tests/build/build b/ceph-medic-tests/build/build
new file mode 100644 (file)
index 0000000..2ba71d3
--- /dev/null
@@ -0,0 +1,13 @@
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
+
+WORKDIR=$(mktemp -td tox.XXXXXXXXXX)
+
+cd $WORKSPACE/tests/functional
+
+delete_libvirt_vms
+clear_libvirt_networks
+restart_libvirt_services
+
+CEPH_MEDIC_DEV_BRANCH=$CEPH_MEDIC_BRANCH CEPH_ANSIBLE_BRANCH=$CEPH_ANSIBLE_BRANCH $VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR -- --provider=libvirt
diff --git a/ceph-medic-tests/config/definitions/ceph-medic-tests.yml b/ceph-medic-tests/config/definitions/ceph-medic-tests.yml
new file mode 100644 (file)
index 0000000..f0a2e5b
--- /dev/null
@@ -0,0 +1,60 @@
+- project:
+    name: ceph-medic-tests
+    scenario:
+      - ansible2.2-nightly_centos7
+    jobs:
+        - 'ceph-medic-tests-{scenario}'
+
+- job-template:
+    name: 'ceph-medic-tests-{scenario}'
+    node: vagrant && libvirt 
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph-medic: Tests [{scenario}]'
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    retry-count: 3
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph-medic
+    logrotate:
+      daysToKeep: -1
+      numToKeep: -1
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+
+    parameters:
+      - string:
+          name: CEPH_MEDIC_BRANCH
+          description: "The ceph-medic branch to test"
+          default: master
+
+      - string:
+          name: CEPH_ANSIBLE_BRANCH
+          description: "The ceph-ansible branch to test"
+          default: master
+
+    triggers:
+      - timed: '@daily'
+
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-medic.git
+          branches:
+            - $CEPH_MEDIC_BRANCH 
+          browser: auto
+          timeout: 20
+
+    builders:
+      - inject:
+          properties-content: |
+            SCENARIO={scenario}
+      - shell:
+          !include-raw-escape:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build
+
+    publishers:
+      - email:
+          recipients: aschoen@redhat.com adeza@redhat.com