Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain how to pass record key to forked projects and pull requests #388

Closed
bahmutov opened this issue Jan 15, 2018 · 1 comment
Closed

Comments

@bahmutov
Copy link
Contributor

On many CIs the environment variables are not passed to the forked projects and pull requests. Thus the npm run test -- --record fails. Example https://travis-ci.org/bahmutov/cypress-react-unit-test/builds/328887786

$ npm test -- --record
> [email protected] test /home/travis/build/bahmutov/cypress-react-unit-test
> cypress run "--record"
You passed the --record flag but did not provide us your Record Key.
You can pass us your Record Key like this:
  cypress run --record --key <record_key>
You can also set the key as an environment variable with the name CYPRESS_RECORD_KEY.
https://on.cypress.io/how-do-i-record-runs
npm ERR! Test failed.  See above for more details.
The command "npm test -- --record" exited with 1.

Need to show how to pass variable, probably limit to encoded variables on TravisCI

@bahmutov
Copy link
Contributor Author

Hmm, we cannot pass even encrypted value to another repo according to https://docs.travis-ci.com/user/environment-variables/#Encrypting-environment-variables

Maybe a better solution would be for the test runner to

cypress-io/cypress#1193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant