Skip to content

Commit

Permalink
chore: test v5 binary against Cypress Real World App (#8240)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Old authored Aug 11, 2020
1 parent 966fbf0 commit 21748fa
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ commands:
description: Whether to use wait-on to wait on a server to be booted
type: string
default: ""
server-start-command:
description: Server start command for repo
type: string
default: "npm start --if-present"
steps:
- attach_workspace:
at: ~/
Expand Down Expand Up @@ -290,7 +294,7 @@ commands:
command: npm run build --if-present
- run:
working_directory: /tmp/<<parameters.repo>>
command: npm start --if-present
command: <<parameters.server-start-command>>
background: true
- run:
condition: <<parameters.wait-on>>
Expand Down Expand Up @@ -1488,6 +1492,16 @@ jobs:
browser: firefox
command: "npm run cypress:run"

"test-binary-against-cypress-realworld-app":
<<: *defaults
steps:
- test-binary-against-repo:
repo: cypress-realworld-app
browser: chrome
server-start-command: "npm run start:ci"
command: "npm run cypress:run"
wait-on: http://localhost:3000

test-binary-as-specific-user:
<<: *defaults
steps:
Expand Down Expand Up @@ -1831,6 +1845,16 @@ linux-workflow: &linux-workflow
<<: *testBinaryFirefox
- test-binary-against-piechopper-firefox:
<<: *testBinaryFirefox
- test-binary-against-cypress-realworld-app:
filters:
branches:
only:
- develop
- kevin-v5.0-release-rwa
- v5.0-release
requires:
- build-npm-package
- build-binary

- test-binary-as-specific-user:
name: "test binary as a non-root user"
Expand Down

0 comments on commit 21748fa

Please sign in to comment.