Skip to content

Commit

Permalink
Merge branch 'develop' into ryanm/fix/v8-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthemanuel committed Dec 2, 2022
2 parents bb1390e + 05dc4a5 commit aa6b359
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .circleci/workflows.yml
Expand Up @@ -628,8 +628,9 @@ commands:
- install-webkit-deps
- run:
name: Run system tests
environment:
CYPRESS_COMMERCIAL_RECOMMENDATIONS: '0'
command: |
CYPRESS_COMMERCIAL_RECOMMENDATIONS=0
ALL_SPECS=`circleci tests glob "/root/cypress/system-tests/test/*spec*"`
SPECS=
for file in $ALL_SPECS; do
Expand All @@ -656,8 +657,9 @@ commands:
- restore_cached_system_tests_deps
- run:
name: Run system tests
environment:
CYPRESS_COMMERCIAL_RECOMMENDATIONS: '0'
command: |
CYPRESS_COMMERCIAL_RECOMMENDATIONS=0
ALL_SPECS=`circleci tests glob "$HOME/cypress/system-tests/test-binary/*spec*"`
SPECS=`echo $ALL_SPECS | xargs -n 1 | circleci tests split --split-by=timings`
echo SPECS=$SPECS
Expand Down Expand Up @@ -1340,7 +1342,7 @@ jobs:
condition:
equal: [ *darwin-arm64-executor, << parameters.executor >> ]
steps:
- run: rm -f /tmp/cypress/junit/*
- run: rm -f /tmp/cypress/junit/*
- unless:
condition:
or:
Expand Down Expand Up @@ -1529,7 +1531,9 @@ jobs:
steps:
- restore_cached_workspace
- run:
command: CYPRESS_COMMERCIAL_RECOMMENDATIONS=0 yarn workspace @tooling/system-tests test:ci "test/non_root*spec*" --browser electron
environment:
CYPRESS_COMMERCIAL_RECOMMENDATIONS: '0'
command: yarn workspace @tooling/system-tests test:ci "test/non_root*spec*" --browser electron
- verify-mocha-results
- store_test_results:
path: /tmp/cypress
Expand Down
5 changes: 5 additions & 0 deletions cli/lib/util.js
Expand Up @@ -533,6 +533,7 @@ const util = {
la(is.unemptyString(varName), 'expected environment variable name, not', varName)

const configVarName = `npm_config_${varName}`
const configVarNameLower = configVarName.toLowerCase()
const packageConfigVarName = `npm_package_config_${varName}`

let result
Expand All @@ -545,6 +546,10 @@ const util = {
debug(`Using ${varName} from npm config`)

result = process.env[configVarName]
} else if (process.env.hasOwnProperty(configVarNameLower)) {
debug(`Using ${varName.toLowerCase()} from npm config`)

result = process.env[configVarNameLower]
} else if (process.env.hasOwnProperty(packageConfigVarName)) {
debug(`Using ${varName} from package.json config`)

Expand Down
5 changes: 5 additions & 0 deletions cli/test/lib/util_spec.js
Expand Up @@ -543,6 +543,11 @@ describe('util', () => {
expect(util.getEnv('CYPRESS_FOO')).to.eql('')
})

it('npm config set should work', () => {
process.env.npm_config_cypress_foo_foo = 'bazz'
expect(util.getEnv('CYPRESS_FOO_FOO')).to.eql('bazz')
})

it('throws on non-string name', () => {
expect(() => {
util.getEnv()
Expand Down

5 comments on commit aa6b359

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on aa6b359 Dec 2, 2022

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 arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/11.3.0/linux-arm64/ryanm/fix/v8-improvements-aa6b3597e7831b12490ef4149d0148bfe372f427/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on aa6b359 Dec 2, 2022

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.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/11.3.0/linux-x64/ryanm/fix/v8-improvements-aa6b3597e7831b12490ef4149d0148bfe372f427/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on aa6b359 Dec 2, 2022

Choose a reason for hiding this comment

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

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/11.3.0/darwin-x64/ryanm/fix/v8-improvements-aa6b3597e7831b12490ef4149d0148bfe372f427/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on aa6b359 Dec 2, 2022

Choose a reason for hiding this comment

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

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/11.3.0/darwin-arm64/ryanm/fix/v8-improvements-aa6b3597e7831b12490ef4149d0148bfe372f427/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on aa6b359 Dec 2, 2022

Choose a reason for hiding this comment

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

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/11.3.0/win32-x64/ryanm/fix/v8-improvements-aa6b3597e7831b12490ef4149d0148bfe372f427/cypress.tgz

Please sign in to comment.