From e098cee421bcfafc90a23e20a24ef158b10357cb Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 26 Jun 2017 12:52:39 -0600 Subject: [PATCH] Add cephmetrics-pull-requests Runs tox tests! Signed-off-by: Zack Cerza --- cephmetrics-pull-requests/build/build | 11 ++++ .../definitions/cephmetrics-pull-requests.yml | 54 +++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 cephmetrics-pull-requests/build/build create mode 100644 cephmetrics-pull-requests/config/definitions/cephmetrics-pull-requests.yml diff --git a/cephmetrics-pull-requests/build/build b/cephmetrics-pull-requests/build/build new file mode 100644 index 00000000..48947738 --- /dev/null +++ b/cephmetrics-pull-requests/build/build @@ -0,0 +1,11 @@ +#!/bin/bash + +set -ex + +# the following two methods exist in scripts/build_utils.sh +pkgs=( "tox" ) +install_python_packages "pkgs[@]" + +# run tox by recreating the environment and in verbose mode +# by default this will run all environments defined +$VENV/tox -rv diff --git a/cephmetrics-pull-requests/config/definitions/cephmetrics-pull-requests.yml b/cephmetrics-pull-requests/config/definitions/cephmetrics-pull-requests.yml new file mode 100644 index 00000000..0522bec4 --- /dev/null +++ b/cephmetrics-pull-requests/config/definitions/cephmetrics-pull-requests.yml @@ -0,0 +1,54 @@ +- job: + name: cephmetrics-pull-requests + project-type: freestyle + defaults: global + concurrent: true + display-name: 'Cephmetrics: Pull Requests' + quiet-period: 5 + block-downstream: false + block-upstream: false + retry-count: 3 + properties: + - github: + url: https://github.com/ceph/cephmetrics/ + logrotate: + daysToKeep: 15 + numToKeep: 30 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + parameters: + - string: + name: sha1 + description: "A pull request ID, like 'origin/pr/72/head'" + + triggers: + - github-pull-request: + admin-list: + - zmc + - pcuzner + - b-ranto + - GregMeno + org-list: + - ceph + only-trigger-phrase: false + github-hooks: true + permit-all: false + auto-close-on-fail: false + + scm: + - git: + url: https://github.com/ceph/cephmetrics.git + branches: + - ${sha1} + refspec: +refs/pull/*:refs/remotes/origin/pr/* + browser: auto + timeout: 20 + skip-tag: true + wipe-workspace: true + + builders: + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/build -- 2.47.3