Skip to content

Commit

Permalink
Update regex for matching Cypress version in tests to replace more ve…
Browse files Browse the repository at this point in the history
…rsion types (#7927)

* Update regex for matching Cypress version to replace more version types

* Increase max zip size from 190 to 200
  • Loading branch information
jennifer-shehane authored Jul 9, 2020
1 parent 4618650 commit 4b4628e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/server/test/support/helpers/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const normalizeStdout = function (str, options: any = {}) {
.replace(/(\s+?)(\d+ms|\d+:\d+:?\d+)/g, replaceDurationInTables)
.replace(/(coffee|js)-\d{3}/g, '$1-456')
// Cypress: 2.1.0 -> Cypress: 1.2.3
.replace(/(Cypress\:\s+)(\d\.\d\.\d)/g, '$11.2.3')
.replace(/(Cypress\:\s+)(\d+\.\d+\.\d+)/g, '$11.2.3')
// Node Version: 10.2.3 (Users/jane/node) -> Node Version: X (foo/bar/node)
.replace(/(Node Version\:\s+v)(\d+\.\d+\.\d+)( \(.*\)\s+)/g, replaceNodeVersion)
// 15 seconds -> X second
Expand Down
2 changes: 1 addition & 1 deletion scripts/binary/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const checkZipSize = function (zipPath) {
const zipSize = filesize(stats.size, { round: 0 })

console.log(`zip file size ${zipSize}`)
const MAX_ALLOWED_SIZE_MB = os.platform() === 'win32' ? 245 : 190
const MAX_ALLOWED_SIZE_MB = os.platform() === 'win32' ? 245 : 200
const MAX_ZIP_FILE_SIZE = megaBytes(MAX_ALLOWED_SIZE_MB)

if (stats.size > MAX_ZIP_FILE_SIZE) {
Expand Down

3 comments on commit 4b4628e

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4b4628e Jul 9, 2020

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/4.10.1/linux-x64/circle-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-389342/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.10.1/circle-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-389228/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4b4628e Jul 9, 2020

Choose a reason for hiding this comment

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

AppVeyor has built the win32 ia32 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.

Instructions are included below, depending on the shell you are using.

In Command Prompt (cmd.exe):

set CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.10.1/win32-ia32/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.10.1/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.10.1/win32-ia32/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.10.1/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.10.1/win32-ia32/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.10.1/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.tgz

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=https://cdn.cypress.io/beta/binary/4.10.1/win32-ia32/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.10.1/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4b4628e Jul 9, 2020

Choose a reason for hiding this comment

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

AppVeyor has built the win32 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.

Instructions are included below, depending on the shell you are using.

In Command Prompt (cmd.exe):

set CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.10.1/win32-x64/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.10.1/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.10.1/win32-x64/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.10.1/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.10.1/win32-x64/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.10.1/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.tgz

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=https://cdn.cypress.io/beta/binary/4.10.1/win32-x64/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.10.1/appveyor-develop-4b4628ea7a85d4d58dc6208624a6ebb23e0fe9b2-34001778/cypress.tgz

Please sign in to comment.