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

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


The following commit(s) were added to refs/heads/master by this push:
     new 29e0111  Moving Python PostCommit into a Gradle task. (#5289)
29e0111 is described below

commit 29e01115075bcd3957ceef60039307e39e007b99
Author: Pablo <[email protected]>
AuthorDate: Mon May 7 18:26:17 2018 -0700

    Moving Python PostCommit into a Gradle task. (#5289)
    
    * Moving Python PostCommit into a Gradle task.
---
 .test-infra/jenkins/job_beam_PostCommit_Python_Verify.groovy | 6 +++++-
 build.gradle                                                 | 9 +++++++++
 sdks/python/build.gradle                                     | 1 +
 3 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/.test-infra/jenkins/job_beam_PostCommit_Python_Verify.groovy 
b/.test-infra/jenkins/job_beam_PostCommit_Python_Verify.groovy
index 73a918e..d5af4e5 100644
--- a/.test-infra/jenkins/job_beam_PostCommit_Python_Verify.groovy
+++ b/.test-infra/jenkins/job_beam_PostCommit_Python_Verify.groovy
@@ -38,6 +38,10 @@ job('beam_PostCommit_Python_Verify') {
 
   // Execute shell command to test Python SDK.
   steps {
-    shell('cd ' + common_job_properties.checkoutDir + ' && bash 
sdks/python/run_postcommit.sh')
+    gradle {
+      rootBuildScriptDir(common_job_properties.checkoutDir)
+      tasks(':pythonPostCommit')
+      common_job_properties.setGradleSwitches(delegate)
+    }
   }
 }
diff --git a/build.gradle b/build.gradle
index 772003b..b00cfa2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -162,6 +162,15 @@ task pythonPreCommit() {
   dependsOn ":beam-sdks-python:check"
 }
 
+task pythonPostCommit() {
+  doLast {
+    exec {
+      executable 'sh'
+      args '-c', './sdks/python/run_postcommit.sh'
+    }
+  }
+}
+
 apply plugin: 'net.researchgate.release'
 release {
   revertOnFail = true
diff --git a/sdks/python/build.gradle b/sdks/python/build.gradle
index 5ee32e4..7f981a9 100644
--- a/sdks/python/build.gradle
+++ b/sdks/python/build.gradle
@@ -159,3 +159,4 @@ task cover(dependsOn: 'setupVirtualenv') {
     }
   }
 }
+

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to