add zip and upload steps to AppVeyor script

This commit is contained in:
Gleb Bahmutov
2017-09-27 08:31:19 -07:00
parent 9442a75f9d
commit 3ee71a095d
2 changed files with 5 additions and 5 deletions
+1
View File
@@ -27,6 +27,7 @@ test_script:
- cd packages/launcher && node index.js && cd ../..
- npm run binary-build -- --platform windows --version 0.20.2-win
- npm run binary-zip
- npm run binary-upload -- --version 0.20.2-win --zip cypress.zip
# - cd packages/server && npm run test-unit
# - npm test
+4 -5
View File
@@ -11,6 +11,7 @@ la = require("lazy-ass")
check = require("check-more-types")
debug = require("debug")("cypress:binary")
questionsRemain = require("@cypress/questions-remain")
R = require("ramda")
zip = require("./zip")
ask = require("./ask")
@@ -25,10 +26,7 @@ success = (str) ->
fail = (str) ->
console.log chalk.bgRed(" " + chalk.black(str) + " ")
zippedFilename = (platform) ->
# TODO use .tar.gz for linux archive. For now to preserve
# same file format as before use .zip
if platform is "linux" then "cypress.zip" else "cypress.zip"
zippedFilename = R.always("cypress.zip")
# goes through the list of properties and asks relevant question
# resolves with all relevant options set
@@ -55,7 +53,8 @@ deploy = {
"skip-clean": false
}
alias: {
skipClean: "skip-clean"
skipClean: "skip-clean",
zip: ["zipFile", "zip-file", "filename"]
}
})
opts.runTests = false if opts["skip-tests"]