{"action":"created","issue":{"url":"https://api.github.com/repos/sinonjs/sinon/issues/910","labels_url":"https://api.github.com/repos/sinonjs/sinon/issues/910/labels{/name}","comments_url":"https://api.github.com/repos/sinonjs/sinon/issues/910/comments","events_url":"https://api.github.com/repos/sinonjs/sinon/issues/910/events","html_url":"https://github.com/sinonjs/sinon/pull/910","id":114462420,"number":910,"title":"Use ESLint --cache for CI speedup","user":{"login":"mroderick","id":20321,"avatar_url":"https://avatars.githubusercontent.com/u/20321?v=3","gravatar_id":"","url":"https://api.github.com/users/mroderick","html_url":"https://github.com/mroderick","followers_url":"https://api.github.com/users/mroderick/followers","following_url":"https://api.github.com/users/mroderick/following{/other_user}","gists_url":"https://api.github.com/users/mroderick/gists{/gist_id}","starred_url":"https://api.github.com/users/mroderick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroderick/subscriptions","organizations_url":"https://api.github.com/users/mroderick/orgs","repos_url":"https://api.github.com/users/mroderick/repos","events_url":"https://api.github.com/users/mroderick/events{/privacy}","received_events_url":"https://api.github.com/users/mroderick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-01T10:25:15Z","updated_at":"2015-11-01T16:09:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sinonjs/sinon/pulls/910","html_url":"https://github.com/sinonjs/sinon/pull/910","diff_url":"https://github.com/sinonjs/sinon/pull/910.diff","patch_url":"https://github.com/sinonjs/sinon/pull/910.patch"},"body":"With `eslint@1.4.0` came the new [`--cache` flag](http://eslint.org/blog/2015/09/eslint-v1.4.0-released/#cached-results).\r\n\r\n#### Before\r\n\r\ntype | Local | Travis\r\n--------|---------|-----\r\nreal | 0m3.444s | 0m4.984s\r\nuser | 0m3.323s | 0m5.428s\r\nsys | 0m0.132s | 0m0.196s\r\n\r\n#### After\r\n\r\ntype | Local | Travis\r\n--------|---------|-----\r\nreal | 0m0.949s | 0m4.916s\r\nuser | 0m0.854s | 0m5.211s\r\nsys | 0m0.095s | 0m0.136s\r\n\r\nI've moved the `.eslintcache` file into `node_modules`, which gets cached in the Travis build cache. And yet, it's still just as slow on Travis, yet speed up locally.\r\n\r\nTips welcome!\r\n\r\ncc: @mantoni @fatso83 @cjohansen @tenzer"},"comment":{"url":"https://api.github.com/repos/sinonjs/sinon/issues/comments/152840764","html_url":"https://github.com/sinonjs/sinon/pull/910#issuecomment-152840764","issue_url":"https://api.github.com/repos/sinonjs/sinon/issues/910","id":152840764,"user":{"login":"mantoni","id":332271,"avatar_url":"https://avatars.githubusercontent.com/u/332271?v=3","gravatar_id":"","url":"https://api.github.com/users/mantoni","html_url":"https://github.com/mantoni","followers_url":"https://api.github.com/users/mantoni/followers","following_url":"https://api.github.com/users/mantoni/following{/other_user}","gists_url":"https://api.github.com/users/mantoni/gists{/gist_id}","starred_url":"https://api.github.com/users/mantoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mantoni/subscriptions","organizations_url":"https://api.github.com/users/mantoni/orgs","repos_url":"https://api.github.com/users/mantoni/repos","events_url":"https://api.github.com/users/mantoni/events{/privacy}","received_events_url":"https://api.github.com/users/mantoni/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T16:09:30Z","updated_at":"2015-11-01T16:09:30Z","body":"Not sure if you saw it: for speeding up development with an eslinted project, I've made `eslint_d` to eliminate the startup time on subsequent invocations: https://www.npmjs.com/package/eslint_d\n\nObviously, this doesn't help at all on travis, but you might be able to use it in your editor."}}