Skip to content

Commit

Permalink
chore: rework pre-release commit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jul 10, 2019
1 parent 04557ad commit 273f9e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 4 additions & 3 deletions scripts/add-install-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ console.log(' binary:', binary)
console.log(' platform:', platform)
console.log(' arch:', arch)

const ciName = getCIName() || 'unknown'
const ciName = getCIName() || 'Unknown CI'
const buildUrl = getCIBuildUrl()
const buildInfo = buildUrl ? `The build is [here](${buildUrl})` : ''
const ciBuildLink = buildUrl ? `[${ciName} has built](${buildUrl})` : `${ciName} has built`
const instructionsAt =
'https://on.cypress.io/installing-cypress#Install-pre-release-version'
const preamble = stripIndent`
${ciName} CI has built ${platform} ${arch} version of the Test Runner. ${buildInfo}
${ciBuildLink} the \`${platform} ${arch}\` version of the Test Runner.
You can install this pre-release platform-specific build using instructions at [${instructionsAt}](${instructionsAt}).
You will need to use custom \`CYPRESS_INSTALL_BINARY\` url and install Cypress using an url instead of the version.
Expand Down
7 changes: 6 additions & 1 deletion scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ const getCIBuildUrl = () => {
if (process.env.APPVEYOR) {
// https://www.appveyor.com/docs/environment-variables/
// there is no single url, but we can form one
// TODO form AppVeyor build url
// looks like this
// https://ci.appveyor.com/project/cypress-io/cypress/builds/25882716/job/7iv75s2vjt5w4usf
return `${process.env.APPVEYOR_URL}/project/${
process.env.APPVEYOR_ACCOUNT_NAME}/${process.env.APPVEYOR_PROJECT_SLUG
}/builds/${process.env.APPVEYOR_BUILD_ID
}/job/${process.env.APPVEYOR_JOB_ID}`
}
}

Expand Down

2 comments on commit 273f9e1

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 273f9e1 Jul 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/3.4.1/linux-x64/circle-develop-273f9e1707357442aec78e43388797636ec8db4a-132355/cypress.zip
npm install https://cdn.cypress.io/beta/npm/3.4.1/circle-develop-273f9e1707357442aec78e43388797636ec8db4a-132358/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 273f9e1 Jul 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/3.4.1/darwin-x64/circle-develop-273f9e1707357442aec78e43388797636ec8db4a-132373/cypress.zip
npm install https://cdn.cypress.io/beta/npm/3.4.1/circle-develop-273f9e1707357442aec78e43388797636ec8db4a-132372/cypress.tgz

Please sign in to comment.