-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conversation
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]; |
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.
should this use short SHA instead of the full SHA. Shorter makes it easier to read etc.
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.
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
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)); |
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.
Please use apputil.print
to make logging consistent. Also could you please update this to print human-readable output instead of raw JSON
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.
OK, will this work?
apputil.print('oldNightlyVersions: ' + JSON.stringify(oldNightlyVersions, null, 4));
LGTM |
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
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