Skip to content

Commit

Permalink
Merge pull request #36 from NoriSte/feature/video-recordings
Browse files Browse the repository at this point in the history
Re-add the Cypress Dashboard id
  • Loading branch information
NoriSte authored Oct 30, 2019
2 parents 2ea2765 + 3db1a7c commit cad3add
Show file tree
Hide file tree
Showing 7 changed files with 3,788 additions and 380 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.DS_Store
cypress/fixtures
cypress/videos
package-lock.json
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ script:
- fossa init
- fossa analyze
after_success:
- npm run semantic-release
- cd <SOURCE_DIR> && fossa test
- npm run semantic-release
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ This plugin is dedicated to them ❤️
This project has been made during one of the Open Source Saturdays, a series of Milan-based events
where everyone codes just to spread some Open Source love ❤️

## Contributing

Contributes are welcome, if you need to run the tests through `npm test`, you must update the packjage.json configuration setting `cypressUploadRecordings` to `false` (or set your own [Cypress recording key](https://docs.cypress.io/guides/guides/command-line.html#Options)).

## Contributors

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand Down
11 changes: 11 additions & 0 deletions cypress-run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const npm = require('npm')

npm.load(() => {
const uploadRecordings = process.env.npm_package_config_cypressUploadRecordings;
const key = process.env.CYPRESS_RECORD_KEY;
if(uploadRecordings && !key) {
throw 'Missing Cypress record key';
}
const options = uploadRecordings && key ? ['--record', '--key', key] : [];
npm.commands['run-script'](['cy:run', ...options]);
})
2 changes: 1 addition & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"projectId": "j2kxip"
"projectId": "g21npg"
}
Loading

0 comments on commit cad3add

Please sign in to comment.