Skip to content

Commit

Permalink
cli: downgrade chalk (#6569)
Browse files Browse the repository at this point in the history
* cli: downgrade chalk

* add job to test NPM on minimum Node version

* forgot to attach workspace

* try updating npm

* try installing npm 5.0.4

* try npm 5.1.0

* skip npm init, just install Cypress

* try using Yarn

* run additional Cypress commands

* print Cypress version

* print Cypress version

* hmm, try different user

* yarn-lock

* back to npm

* print npm version

Co-authored-by: Jennifer Shehane <[email protected]>
  • Loading branch information
bahmutov and jennifer-shehane authored Feb 28, 2020
1 parent b4f6f0c commit 4e11b5b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
38 changes: 38 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,40 @@ jobs:
command: $(yarn bin)/cypress info
- store-npm-logs

test-npm-module-on-minimum-node-version:
<<: *defaults
docker:
- image: cypress/base:8.0.0
steps:
- attach_workspace:
at: ~/
# make sure we have cypress.zip received
- run: ls -l
- run: ls -l cypress.zip cypress.tgz
- run: mkdir test-binary
- run: node --version
- run: npm --version
- run:
name: Create new NPM package
working_directory: test-binary
command: npm init -y
- run:
name: Install Cypress
working_directory: test-binary
command: CYPRESS_INSTALL_BINARY=/root/cypress/cypress.zip npm install /root/cypress/cypress.tgz
- run:
name: Verify Cypress binary
working_directory: test-binary
command: $(npm bin)/cypress verify
- run:
name: Print Cypress version
working_directory: test-binary
command: $(npm bin)/cypress version
- run:
name: Cypress info
working_directory: test-binary
command: $(npm bin)/cypress info

# install NPM + binary zip and run against staging API
"test-binary-against-staging":
<<: *defaults
Expand Down Expand Up @@ -1247,6 +1281,10 @@ linux-workflow: &linux-workflow
- develop
requires:
- build-binary
- test-npm-module-on-minimum-node-version:
requires:
- build-binary
- build-npm-package
- post-pre-release-install-comment:
context: test-runner:commit-status-checks
filters:
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"arch": "2.1.1",
"bluebird": "3.7.2",
"cachedir": "2.3.0",
"chalk": "3.0.0",
"chalk": "2.4.2",
"check-more-types": "2.24.0",
"commander": "4.1.0",
"common-tags": "1.8.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8020,7 +8020,7 @@ [email protected], chai@^4.1.2:
pathval "^1.1.0"
type-detect "^4.0.5"

chalk@*, [email protected]:
chalk@*:
version "3.0.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4"
integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==
Expand Down

4 comments on commit 4e11b5b

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4e11b5b Feb 28, 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.0.3/linux-x64/circle-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-267631/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/circle-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-267613/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4e11b5b Feb 28, 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.0.3/darwin-x64/circle-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-267638/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/circle-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-267633/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4e11b5b Feb 28, 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.0.3/win32-ia32/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.0.3/win32-ia32/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/win32-ia32/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/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.0.3/win32-ia32/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4e11b5b Feb 28, 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.0.3/win32-x64/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.0.3/win32-x64/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/win32-x64/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/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.0.3/win32-x64/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-4e11b5bdde29fda2d9dcb8439b5d0dff7699dd0b-31116272/cypress.tgz

Please sign in to comment.