Skip to content

Commit

Permalink
pass custom command
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Nov 26, 2019
1 parent 924f36f commit 1a643cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ commands:
type: enum
enum: ["electron", "chrome", "firefox"]
default: "electron"
command:
description: Test command to run to start Cypress tests
type: string
default: "npm run e2e"
steps:
- attach_workspace:
at: ~/
Expand All @@ -268,7 +272,7 @@ commands:
background: true
- run:
working_directory: /tmp/<<parameters.repo>>
command: npm run e2e -- --browser <<parameters.browser>>
command: <<parameters.command>> -- --browser <<parameters.browser>>
- store-npm-logs

jobs:
Expand Down Expand Up @@ -1042,6 +1046,7 @@ jobs:
- test-binary-against-repo:
repo: cypress-documentation
browser: firefox
command: "npm run cypress:run"

test-binary-as-specific-user:
<<: *defaults
Expand Down

1 comment on commit 1a643cf

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 1a643cf Nov 26, 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.7.0/linux-x64/circle-issue-1096-firefox-support-1a643cfbb5d2d2c6c81a3a690ca824fbddaf8417-198172/cypress.zip
npm install https://cdn.cypress.io/beta/npm/3.7.0/circle-issue-1096-firefox-support-1a643cfbb5d2d2c6c81a3a690ca824fbddaf8417-198167/cypress.tgz

Please sign in to comment.