Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 18, 2021. It is now read-only.
/shipkitPublic archive

[SHIPKIT-513] Automated commit message should have CI build ID#709

Open
ArturSkowronski wants to merge5 commits intomaster
base:master
Choose a base branch
Loading
fromSHIPKIT-513-new-version

Conversation

@ArturSkowronski
Copy link
Member

No description provided.

Copy link
Member

@mockitoguymockitoguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I suggested improvements. Thanks! Looking forward to merging!


publicvoidapply(finalProjectproject) {
finalShipkitConfigurationconf =project.getPlugins().apply(ShipkitConfigurationPlugin.class).getConfiguration();
StringcommitMessage =generateCommitMessagePostfix(conf,getProperty("TRAVIS_BUILD_NUMBER"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Travis exports env variables rather than system properties.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Good catch! Thanks


publicvoidapply(finalProjectproject) {
finalShipkitConfigurationconf =project.getPlugins().apply(ShipkitConfigurationPlugin.class).getConfiguration();
StringcommitMessage =generateCommitMessagePostfix(conf,getProperty("TRAVIS_BUILD_NUMBER"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

GitPlugin should be decoupled from Travis, so that we can use it for Circle CI, etc. Take a look at#514 - we're adding new code to TravisPlugin.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

That's why I exposed it to CommitMessageUtil but using Travis Plugin for that seems to be really better way


importorg.shipkit.gradle.configuration.ShipkitConfiguration

classCommitMessageUtilsTestextendsSpecification {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Nice test coverage! Thanks!

@ArturSkowronski
Copy link
MemberAuthor

@mockito/shipkit-developers Thanks for the feedback :) I'll try to implement suggestion quickly

@ArturSkowronski
Copy link
MemberAuthor

@mockitoguy I did a few changes (it took some time but that was really busy week...), I still have a question what do you @mockito/shipkit-developers suggest is the best way of testing changes like that. I see there are not many automatic tests for interoperability of plugins and I'm looking for a better way than doing that manually - what itself is hard when it's touching Travis builds.

Do you have any good idea?

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

1 more reviewer

@mockitoguymockitoguymockitoguy requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ArturSkowronski@mockitoguy

[8]ページ先頭

©2009-2025 Movatter.jp