Fix win install message (#6253)

* try: fix add-install-comment on win

* build on this branch

* Revert "build on this branch"

This reverts commit 228f74e581.

* add instructions for windows shells

* build on this branch

* fix indentation

* Revert "build on this branch"

This reverts commit cd955db8d0.
This commit is contained in:
Zach Bloomquist
2020-01-27 15:01:41 -05:00
committed by GitHub
parent 9a6597ffe8
commit ae81d5d713

View File

@@ -13,7 +13,7 @@ const {
getCIBuildUrl,
} = require('./utils')
const { addCommitComment } = require('@cypress/github-commit-status-check')
const { stripIndent } = require('common-tags')
const { html, stripIndent } = require('common-tags')
/* eslint-disable no-console */
@@ -62,11 +62,32 @@ const getLinuxInstallMessage = () => {
}
const getWindowsInstallMessage = () => {
return stripIndent`
return html`
${preamble}
set CYPRESS_INSTALL_BINARY=${binary}
npm install ${binary}
Instructions are included below, depending on the shell you are using.
#### In Command Prompt (\`cmd.exe\`):
set CYPRESS_INSTALL_BINARY=${binary}
npm install ${npm}
#### In PowerShell:
$env:CYPRESS_INSTALL_BINARY = ${binary}
npm install ${npm}
#### In Git Bash:
export CYPRESS_INSTALL_BINARY=${binary}
npm install ${npm}
#### Using \`cross-env\`:
If the above commands do not work for you, you can also try using \`cross-env\`:
npm i -g cross-env
cross-env CYPRESS_INSTALL_BINARY=${binary} npm install ${npm}
`
}