]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-medic-pull-requests: adds a job to test ceph-medic PRs 744/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 16 Jun 2017 18:03:42 +0000 (13:03 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 19 Jun 2017 13:52:25 +0000 (08:52 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-medic-pull-requests/build/build [new file with mode: 0644]
ceph-medic-pull-requests/config/definitions/ceph-medic-pull-requests.yml [new file with mode: 0644]

diff --git a/ceph-medic-pull-requests/build/build b/ceph-medic-pull-requests/build/build
new file mode 100644 (file)
index 0000000..63fe899
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
+
+cd "$WORKSPACE/ceph-medic"
+
+$VENV/tox -rv
diff --git a/ceph-medic-pull-requests/config/definitions/ceph-medic-pull-requests.yml b/ceph-medic-pull-requests/config/definitions/ceph-medic-pull-requests.yml
new file mode 100644 (file)
index 0000000..4f0f104
--- /dev/null
@@ -0,0 +1,64 @@
+- scm:
+    name: ceph-medic 
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-medic
+          branches:
+            - ${sha1}
+          refspec: +refs/pull/*:refs/remotes/origin/pr/*
+          browser: auto
+          timeout: 20
+          basedir: "ceph-medic"
+          skip-tag: true
+          wipe-workspace: true
+
+
+- job:
+    name: ceph-medic-pull-requests
+    description: Runs tox tests for ceph-medic on each GitHub PR
+    project-type: freestyle
+    node: python3
+    block-downstream: false
+    block-upstream: false
+    defaults: global
+    display-name: 'ceph-medic: Pull Requests'
+    quiet-period: 5
+    retry-count: 3
+
+    logrotate:
+      daysToKeep: 15
+      numToKeep: 30
+      artifactDaysToKeep: 15
+      artifactNumToKeep: 15
+
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph-medic/
+
+    parameters:
+      - string:
+          name: sha1
+          description: "A pull request ID, like 'origin/pr/72/head'"
+
+    triggers:
+      - github-pull-request:
+          admin-list:
+            - alfredodeza
+            - dmick
+            - ktdreyer
+            - andrewschoen
+          org-list:
+            - ceph
+          only-trigger-phrase: false
+          github-hooks: true
+          permit-all: true
+          auto-close-on-fail: false
+
+    scm:
+      - ceph-medic
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build