]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
Add cephmetrics-pull-requests 761/head
authorZack Cerza <zack@redhat.com>
Mon, 26 Jun 2017 18:52:39 +0000 (12:52 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 26 Jun 2017 18:52:39 +0000 (12:52 -0600)
Runs tox tests!

Signed-off-by: Zack Cerza <zack@redhat.com>
cephmetrics-pull-requests/build/build [new file with mode: 0644]
cephmetrics-pull-requests/config/definitions/cephmetrics-pull-requests.yml [new file with mode: 0644]

diff --git a/cephmetrics-pull-requests/build/build b/cephmetrics-pull-requests/build/build
new file mode 100644 (file)
index 0000000..4894773
--- /dev/null
@@ -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 (file)
index 0000000..0522bec
--- /dev/null
@@ -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