-
Notifications
You must be signed in to change notification settings - Fork 364
Add client build to Gradle #2590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -135,6 +135,16 @@ tasks.named<RatTask>("rat").configure { | |
| excludes.add("**/*.png") | ||
| } | ||
|
|
||
| tasks.register<Exec>("buildPythonClient") { | ||
| description = "Build the python client" | ||
|
|
||
| workingDir = project.projectDir | ||
| if (project.hasProperty("python.format")) { | ||
| environment("FORMAT", project.property("python.format") as String) | ||
| } | ||
| commandLine("make", "client-build") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some thoughts: Shall we add an option to build only sdist? Underlying it would be Could be useful in some case when we only want sdist : )
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good suggestion. Let me quickly add that.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @HonahX this is added. Instead of hard-coded it, it is now controlled via When using gradle, it is control via
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That looks great! Thanks for adding it! |
||
| } | ||
|
|
||
| // Pass environment variables: | ||
| // ORG_GRADLE_PROJECT_apacheUsername | ||
| // ORG_GRADLE_PROJECT_apachePassword | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it hooked up to any "regular" top-level commands?
Should we run it in CI for verification?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like I merged too early. Currently it is not linked with any top level commands, but that is possible if we want to do so. The current CI is using the make command only. There is a WIP PR which needs this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linking to top-level commands is not critical... I was just wondering. If we connect it, I'd suggest connecting to the
assemblechain.Validating this new tasks in CI would be really good to have, but it's ok to do that in a follow-up PR, of course :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback. Let me review this later tonight or tomorrow then purpose a new PR.