]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
paddles-pull-requests: adds a job to test paddles PRs 1427/head
authorThomas Bechtold <tbechtold@suse.com>
Wed, 30 Oct 2019 15:22:51 +0000 (16:22 +0100)
committerThomas Bechtold <tbechtold@suse.com>
Wed, 30 Oct 2019 15:22:51 +0000 (16:22 +0100)
Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
paddles-pull-requests/build/build [new file with mode: 0644]
paddles-pull-requests/config/definitions/paddles-pull-requests.yml [new file with mode: 0644]

diff --git a/paddles-pull-requests/build/build b/paddles-pull-requests/build/build
new file mode 100644 (file)
index 0000000..ec83f09
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
+
+sudo yum install -y epel-release
+sudo yum --enablerepo epel install -y python36
+
+cd "$WORKSPACE/paddles"
+
+$VENV/tox -rv
diff --git a/paddles-pull-requests/config/definitions/paddles-pull-requests.yml b/paddles-pull-requests/config/definitions/paddles-pull-requests.yml
new file mode 100644 (file)
index 0000000..0ef9227
--- /dev/null
@@ -0,0 +1,64 @@
+- scm:
+    name: paddles
+    scm:
+      - git:
+          url: https://github.com/ceph/paddles
+          branches:
+            - ${sha1}
+          refspec: +refs/pull/*:refs/remotes/origin/pr/*
+          browser: auto
+          timeout: 20
+          basedir: "paddles"
+          skip-tag: true
+          wipe-workspace: true
+
+
+- job:
+    name: paddles-pull-requests
+    description: Runs tox tests for paddles on each GitHub PR
+    project-type: freestyle
+    node: python3 && centos7
+    block-downstream: false
+    block-upstream: false
+    defaults: global
+    display-name: 'paddles: Pull Requests'
+    quiet-period: 5
+    retry-count: 3
+
+
+    properties:
+      - build-discarder:
+          days-to-keep: 15
+          num-to-keep: 30
+          artifact-days-to-keep: 15
+          artifact-num-to-keep: 15
+      - github:
+          url: https://github.com/ceph/paddles/
+
+    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:
+      - paddles
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build