beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (BEAM-3257) Migrate Python Jenkins PreCommits to Gradle
Date Tue, 03 Apr 2018 23:03:00 GMT

     [ https://issues.apache.org/jira/browse/BEAM-3257?focusedWorklogId=87325&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-87325
]

ASF GitHub Bot logged work on BEAM-3257:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Apr/18 23:02
            Start Date: 03/Apr/18 23:02
    Worklog Time Spent: 10m 
      Work Description: udim commented on a change in pull request #5010: [BEAM-3257] Add
Python precommit gradle config
URL: https://github.com/apache/beam/pull/5010#discussion_r178985870
 
 

 ##########
 File path: sdks/python/build.gradle
 ##########
 @@ -25,75 +25,123 @@ apply plugin: "base"
 task test {}
 check.dependsOn test
 
-task setupTest {
+def envdir = "${project.buildDir}/gradleenv"
+
+task setupVirtualenv {
   doLast {
+    exec {
+      commandLine 'virtualenv', "${envdir}"
+    }
     exec {
       executable 'sh'
-      args '-c', 'which tox || pip install --user --upgrade tox'
+      args '-c', "source ${envdir}/bin/activate && pip install --upgrade tox"
     }
   }
+  outputs.files("$buildDir/.gradleenv/bin/tox")
 }
 
-task sdist {
+task sdist (dependsOn: 'setupVirtualenv') {
 
 Review comment:
   done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 87325)

> Migrate Python Jenkins PreCommits to Gradle
> -------------------------------------------
>
>                 Key: BEAM-3257
>                 URL: https://issues.apache.org/jira/browse/BEAM-3257
>             Project: Beam
>          Issue Type: Sub-task
>          Components: build-system, testing
>            Reporter: Luke Cwik
>            Assignee: Udi Meiri
>            Priority: Major
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> Code is here: https://github.com/apache/beam/blob/master/.test-infra/jenkins/job_beam_PreCommit_Python_MavenInstall.groovy



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message