Skip to content
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

Release 1.6.1 with automation #296

Merged
merged 5 commits into from
May 9, 2017
Merged

Conversation

wisechengyi
Copy link
Collaborator

@wisechengyi wisechengyi commented May 9, 2017

Problem

Earlier the manual release into Stable channel missed certain classfiles, because not having Scala SDK set correctly in the intellij project of this repo caused compilation to miss all the scala files and passed only with warnings.

Solution

Add 'stable' channel into the release automation script as well, so from now on there should be no need to manually build and upload jars to Jetbrains plugin repo anymore.

Result

Example run can be seen at https://travis-ci.org/wisechengyi/intellij-pants-plugin/jobs/230219448

INFO:__main__:Releasing 1.6.1 to Stable channel
INFO:__main__:rm -rf dist;./pants binary scripts/sdk:intellij-pants-plugin-publish
INFO:__main__:Packaging into a zip
INFO:__main__:mkdir -p tmp/pants/lib && cp dist/intellij-pants-plugin-publish.jar tmp/pants/lib && cd tmp && zip -r pants_1.6.1.zip pants/ &&cd .. &&cp tmp/pants_1.6.1.zip pants_1.6.1.zip &&rm -rf tmp
INFO:__main__:pants_1.6.1.zip built successfully
...

Notable changes from 1.6.0

@wisechengyi wisechengyi changed the title Release 1.6.1 and automate release to stable channel as well Release 1.6.1 with automation May 9, 2017
Copy link
Contributor

@baroquebobcat baroquebobcat left a comment

Choose a reason for hiding this comment

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

Lgtm, modulo a couple minor comments.

subprocess.check_output('git checkout {}'.format(PLUGIN_XML), shell=True)
parser = argparse.ArgumentParser()
parser.add_argument('--tag', type=str, default='')
args = parser.parse_args()
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a short description?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added

channel = CHANNEL_BLEEDING_EDGE

sha = get_head_sha()
logger.info('Append git sha {} to plugin version'.format(sha))
Copy link
Contributor

Choose a reason for hiding this comment

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

How about Appending current git sha, {}, to plugin version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

refined. thanks!

@wisechengyi wisechengyi merged commit 92ef817 into pantsbuild:master May 9, 2017
@wisechengyi wisechengyi deleted the 1.6.1 branch May 9, 2017 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants