mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-28 19:00:03 -05:00
trigger/bump other projects serially (#552)
* trigger/bump other projects serially * bring version of bumper that suppors appVeyor variables * add cypress-tiny-project test
This commit is contained in:
+10
-10
@@ -10,27 +10,27 @@ function getNameAndBinary (args = process.argv) {
|
||||
const options = minimist(args)
|
||||
|
||||
la(is.unemptyString(options.npm),
|
||||
'missing --npm option with package url', options)
|
||||
'missing --npm option', options)
|
||||
la(is.unemptyString(options.binary),
|
||||
'missing --binary option with binary url', options)
|
||||
'missing --binary option', options)
|
||||
|
||||
let npmUrlOrVersion = options.npm
|
||||
let npm = options.npm
|
||||
if (fs.existsSync(options.npm)) {
|
||||
console.log('loading NPM url from', options.npm)
|
||||
npmUrlOrVersion = require(path.resolve(options.npm)).url
|
||||
la(is.url(npmUrlOrVersion), 'not an url', npmUrlOrVersion)
|
||||
npm = require(path.resolve(options.npm)).url
|
||||
la(is.url(npm), 'not an url', npm)
|
||||
}
|
||||
|
||||
let binaryVersionOrUrl = options.binary
|
||||
let binary = options.binary
|
||||
if (fs.existsSync(options.binary)) {
|
||||
console.log('loading binary url from', options.binary)
|
||||
binaryVersionOrUrl = require(path.resolve(options.binary)).url
|
||||
la(is.url(binaryVersionOrUrl), 'not an url', binaryVersionOrUrl)
|
||||
binary = require(path.resolve(options.binary)).url
|
||||
la(is.url(binary), 'not an url', binary)
|
||||
}
|
||||
|
||||
return {
|
||||
npmUrl: npmUrlOrVersion,
|
||||
binaryUrl: binaryVersionOrUrl,
|
||||
npm,
|
||||
binary,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user