Skip to content

CB-7904 Built nightly releases using coho #116

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

Merged
merged 2 commits into from
May 13, 2016
Merged

CB-7904 Built nightly releases using coho #116

merged 2 commits into from
May 13, 2016

Conversation

daserge
Copy link
Contributor

@daserge daserge commented Apr 27, 2016

CB-7904 Built nightly releases using coho

Updates code for the current version
Fixed the date format
Add 'ignore-test-failures' flag for debugging purposes
Clone repos if necessary before updating
Add lib commit SHA to the build version
Adds handling for separate CLI and LIB nightly versions unpublishing
Fixes npm-unpublish-nightly entryPoint

CB-9858 Implement Cordova Fetch Proposal

Ensure fetch and cli is properly installed/linked
Add fetch to list of tools repos
Resolve cordova-fetch location properly when npm-linking modules

Jira issue

var cordovaLibVersion;
//update package.json version for cli + lib, update lib reference for cli
yield repoutil.forEachRepo([cordovaLib, cli], function*(repo) {
var dir = process.cwd();
var packageJSON = require(dir+'/package.json');
packageJSON.version = versionutil.removeDev(packageJSON.version) + nightlyVersion;
packageJSON.version = versionutil.removeDev(packageJSON.version) + nightlyVersion +
'+' + SHAJSON[repo.id];
Copy link
Contributor

Choose a reason for hiding this comment

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

should this use short SHA instead of the full SHA. Shorter makes it easier to read etc.

Copy link
Member

@vladimir-kotikov vladimir-kotikov May 13, 2016

Choose a reason for hiding this comment

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

Generally, eight to ten characters are more than enough to be unique within a project

(from Git book). I guess stripping to 8 characters should be enough for our purposes

@nikhilkh
Copy link
Contributor

LGTM otherwise

var oldNightlyVersions = {};
oldNightlyVersions.cli = yield executil.execHelper(executil.ARGS('npm view cordova dist-tags.nightly'));
oldNightlyVersions.lib = yield executil.execHelper(executil.ARGS('npm view cordova-lib dist-tags.nightly'));
console.log('oldNightlyVersions: ' + JSON.stringify(oldNightlyVersions));
Copy link
Member

Choose a reason for hiding this comment

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

Please use apputil.print to make logging consistent. Also could you please update this to print human-readable output instead of raw JSON

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, will this work?
apputil.print('oldNightlyVersions: ' + JSON.stringify(oldNightlyVersions, null, 4));

@vladimir-kotikov
Copy link
Member

LGTM :shipit:

vladimir-kotikov and others added 2 commits May 13, 2016 13:55
Ensure fetch and cli is properly installed/linked
Add fetch to list of tools repos
Resolve cordova-fetch location properly when npm-linking modules
Updates code for the current version
Fixed the date format
Add 'ignore-test-failures' flag for debugging purposes
Clone repos if necessary before updating
Add commit short SHA to the lib/cli build version
Adds handling for separate CLI and LIB nightly versions unpublishing
Fixes npm-unpublish-nightly entryPoint
@asfgit asfgit merged commit 9c69870 into apache:master May 13, 2016
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.

4 participants