mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-06 06:29:45 -06:00
use default next-dev-version if not set during Linux binary bui… (#5512)
This commit is contained in:
committed by
Zach Bloomquist
parent
eb078974fe
commit
7be840efca
@@ -607,7 +607,10 @@ jobs:
|
||||
- run:
|
||||
environment:
|
||||
DEBUG: electron-builder,electron-osx-sign*
|
||||
command: npm run binary-build -- --platform $PLATFORM --version $NEXT_DEV_VERSION
|
||||
# if this is a forked pull request, the NEXT_DEV_VERSION environment variable
|
||||
# won't be set and we will use default version, since we are not going to
|
||||
# upload the dev binary build anywhere
|
||||
command: npm run binary-build -- --platform $PLATFORM --version ${NEXT_DEV_VERSION:-0.0.0-development}
|
||||
- run: npm run binary-zip -- --platform $PLATFORM
|
||||
# Cypress binary file should be zipped to cypress.zip
|
||||
- run: ls -l *.zip
|
||||
|
||||
@@ -139,9 +139,11 @@ deploy = {
|
||||
build: (options) ->
|
||||
console.log('#build')
|
||||
options ?= @parseOptions(process.argv)
|
||||
debug("parsed build options %o", options)
|
||||
|
||||
askMissingOptions(['version', 'platform'])(options)
|
||||
.then ->
|
||||
debug("building binary: platform %s version %s", options.platform, options.version)
|
||||
build(options.platform, options.version, options)
|
||||
|
||||
zip: (options) ->
|
||||
|
||||
Reference in New Issue
Block a user