Skip to content

Commit

Permalink
docs: convert $(npm bin) in examples to npx (cypress-io#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 committed Jan 16, 2024
1 parent ca5eec2 commit c52883a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ steps:
# if necessary, reinstall "correct" version of Cypress
# a common situation if testing preview binary build
# "$(npm bin)/cypress" install --force
# npx cypress install --force
#
echo "--- Install custom Cypress version"
npm install "$CYPRESS_NPM_PACKAGE_NAME"
echo "--- Cypress version"
"$(npm bin)/cypress" version
npx cypress version
echo "+++ Run Cypress tests"
npm run test:ci:record
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ install:
# useful to make sure we are not carrying around old versions
- npx cypress cache path
- npx cypress cache list
- $(npm bin)/print-env CI
- npx print-env CI
- npm run cy:verify
- npm run cy:info

Expand All @@ -39,7 +39,7 @@ install:
stage: test
script:
# print CI environment variables for reference
- $(npm bin)/print-env CI
- npx print-env CI
# start the server in the background
- npm run start &
# run Cypress test in load balancing mode
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cache:
defaults: &defaults
script:
# ## print all Travis environment variables for debugging
- $(npm bin)/print-env TRAVIS
- npx print-env TRAVIS
- npm run start &
- npm run cy:run -- --record --parallel --group $STAGE_NAME
# after all tests finish running we need
Expand Down
2 changes: 1 addition & 1 deletion basic/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test:
script:
- npm ci
# print CI environment variables for reference
- $(npm bin)/print-env CI
- npx print-env CI
# make sure Cypress can run
- npm run cy:verify
# start the server in the background
Expand Down

0 comments on commit c52883a

Please sign in to comment.