mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-30 11:00:35 -06:00
go through entire binary deploy on linux platform
This commit is contained in:
@@ -29,7 +29,8 @@ macZip = (src, dest) ->
|
||||
|
||||
# resolves with zipped filename
|
||||
linuxZip = (src, dest) ->
|
||||
cmd = "tar -zcvf #{dest} #{src}"
|
||||
# cmd = "tar -zcvf #{dest} #{src}"
|
||||
cmd = "zip -r #{dest} #{src}"
|
||||
console.log("linux zip: #{cmd}")
|
||||
execa.shell(cmd)
|
||||
.then((result) ->
|
||||
@@ -43,7 +44,7 @@ linuxZip = (src, dest) ->
|
||||
)
|
||||
|
||||
zippers = {
|
||||
linux: macZip
|
||||
linux: linuxZip
|
||||
darwin: macZip
|
||||
}
|
||||
|
||||
|
||||
@@ -9,17 +9,11 @@ docker pull $name
|
||||
|
||||
echo "Starting Docker image with monorepo volume attached"
|
||||
echo "In order to build Cypress Linux binary"
|
||||
echo Command npm run binary-build -- "$@"
|
||||
echo Command npm run binary-deploy -- "$@"
|
||||
|
||||
# for now just run shell in the Docker container
|
||||
# and then the user can go through the deploy
|
||||
docker run \
|
||||
-e npm_config_loglevel='warn' \
|
||||
-v $PWD:/home/person/cypress-monorepo \
|
||||
-w /home/person/cypress-monorepo \
|
||||
-it $name \
|
||||
npm run binary-build -- "$@"
|
||||
|
||||
# /bin/bash
|
||||
# todo: grab / compute the version to build
|
||||
|
||||
npm run binary-deploy -- "$@"
|
||||
|
||||
Reference in New Issue
Block a user