go through entire binary deploy on linux platform

This commit is contained in:
Gleb Bahmutov
2017-09-15 16:38:33 -04:00
parent 941203500b
commit 5ce5b973eb
2 changed files with 5 additions and 10 deletions

View File

@@ -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
}

View File

@@ -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 -- "$@"