You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by mx...@apache.org on 2018/11/30 11:15:56 UTC

[beam] 06/07: [BEAM-6146] Portable Python Precommit test

This is an automated email from the ASF dual-hosted git repository.

mxm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 5506335bf2b11a5e38c1bb99d9204573548705a2
Author: Ankur Goenka <an...@gmail.com>
AuthorDate: Wed Nov 28 19:31:56 2018 -0800

    [BEAM-6146] Portable Python Precommit test
---
 .../jenkins/job_PreCommit_Portable_Python.groovy   | 32 ++++++++++++++++++++++
 build.gradle                                       |  4 +++
 2 files changed, 36 insertions(+)

diff --git a/.test-infra/jenkins/job_PreCommit_Portable_Python.groovy b/.test-infra/jenkins/job_PreCommit_Portable_Python.groovy
new file mode 100644
index 0000000..1f26898
--- /dev/null
+++ b/.test-infra/jenkins/job_PreCommit_Portable_Python.groovy
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import PrecommitJobBuilder
+
+PrecommitJobBuilder builder = new PrecommitJobBuilder(
+    scope: this,
+    nameBase: 'Portable_Python',
+    gradleTask: ':portablePythonPreCommit',
+    triggerPathPatterns: [
+      '^model/.*$',
+      '^runners/.*$',
+      '^sdks/python/.*$',
+      '^release/.*$',
+    ]
+)
+builder.build {}
diff --git a/build.gradle b/build.gradle
index 269da86..a74817f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -246,6 +246,10 @@ task pythonPostCommit() {
   dependsOn ":beam-sdks-python:postCommit"
 }
 
+task portablePythonPreCommit() {
+  dependsOn ":beam-sdks-python:portablePreCommit"
+}
+
 task websitePreCommit() {
   dependsOn ":beam-website:preCommit"
 }