webrtc / samples

WebRTC Web demos and samples
https://webrtc.github.io/samples
BSD 3-Clause "New" or "Revised" License
13.95k stars 5.71k forks source link

Pull request #13 introduces lots of JShint errors #385

Closed KaptenJansson closed 9 years ago

KaptenJansson commented 9 years ago

Please install grunt and friends and fix all the styleguide errors according to the developers guide.

If you have strong feelings and a good reason for this not to be part of the lint/hint checks we can add an exception.

alvestrand commented 9 years ago

Wonderful to know that there is such a thing as a developer's guide for the project. Do you have a pointer to how to run exactly the tests that Travis runs for the project? (I've found the Travis doc to be largely incomprehensible on this subject)

KaptenJansson commented 9 years ago

When you have installed grunt, it will run the same tests as tavis. Follow the grunt guide in the developers guide to get started.

samdutton commented 9 years ago

When you have installed grunt, it will run the same tests as tavis.

Yes - the project is configured on the Travis website https://travis-ci.org/, then Travis listens via the GitHub API for pull or push requests.

Each time there's a request to the repo, Travis fires up Node and runs the command defined by the scripts.test property in /package.json https://github.com/GoogleChrome/webrtc/blob/master/package.json, which for this project is grunt --verbose. You can see the logs at travis-ci.org/GoogleChrome/webrtc.

Travis can also be configured to run other build tasks, but we only use it to report success or failure - which is signified by email and the build pass/fail icon displayed on /README.md https://github.com/samdutton/webrtc/blob/demo-updates/README.md.

We should probably set up additional notification recipients for success/failure in travis.yml. (More information about ways to set notification options here http://docs.travis-ci.com/user/notifications/#Notifications - can use IRC and webhooks, specify success and failure responses, etc.)

More information about Travis here https://docs.google.com/document/d/1tn1t6LW2ffzGuYTK3366w1fhTkkzsSvHsBnOHoDfRzY/edit#heading=h.ejd2dubhr7xa .

On 16 January 2015 at 12:51, Christoffer Jansson notifications@github.com wrote:

When you have installed grunt, it will run the same tests as tavis. Follow the grunt guide http://fcfeibel.com/blog/2013/07/28/grunt-quickstart-set-up-grunt-with-jshint/ in the developers guide to get started.

Reply to this email directly or view it on GitHub https://github.com/GoogleChrome/webrtc/issues/385#issuecomment-70249413.

juberti commented 9 years ago

This new sample should go underneath the /getusermedia folder.

KaptenJansson commented 9 years ago

@alvestrand can we close this?

alvestrand commented 9 years ago

Yes, please close this. jan-ivar has supplied better functionality in adapter.js.