From ea466ccd52737a21a17125e95f31b40c423d019c Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 7 Jul 2017 15:37:40 -0500 Subject: [PATCH] ceph-medic-tests: a job to run nightly tests for ceph-medic This uses a job-template so as we build more testings scenarios they can be added here easily. Signed-off-by: Andrew Schoen --- ceph-medic-tests/build/build | 13 ++++ .../config/definitions/ceph-medic-tests.yml | 60 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 ceph-medic-tests/build/build create mode 100644 ceph-medic-tests/config/definitions/ceph-medic-tests.yml diff --git a/ceph-medic-tests/build/build b/ceph-medic-tests/build/build new file mode 100644 index 00000000..2ba71d3e --- /dev/null +++ b/ceph-medic-tests/build/build @@ -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 index 00000000..f0a2e5b8 --- /dev/null +++ b/ceph-medic-tests/config/definitions/ceph-medic-tests.yml @@ -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 -- 2.39.5