{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2555","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2555/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2555/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2555/events","html_url":"https://github.com/travis-ci/travis-ci/issues/2555","id":38488454,"number":2555,"title":"Chrome browser not captured for karma tests.","user":{"login":"manleyjster","id":1668487,"avatar_url":"https://avatars.githubusercontent.com/u/1668487?v=3","gravatar_id":"","url":"https://api.github.com/users/manleyjster","html_url":"https://github.com/manleyjster","followers_url":"https://api.github.com/users/manleyjster/followers","following_url":"https://api.github.com/users/manleyjster/following{/other_user}","gists_url":"https://api.github.com/users/manleyjster/gists{/gist_id}","starred_url":"https://api.github.com/users/manleyjster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manleyjster/subscriptions","organizations_url":"https://api.github.com/users/manleyjster/orgs","repos_url":"https://api.github.com/users/manleyjster/repos","events_url":"https://api.github.com/users/manleyjster/events{/privacy}","received_events_url":"https://api.github.com/users/manleyjster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-07-23T03:52:16Z","updated_at":"2015-01-27T14:23:00Z","closed_at":null,"body":"Hi!\r\n\r\nMy last few travis-ci builds have failed because of issues related to karma tests running in Chrome.\r\n\r\nI first received this error message ([build 30615143](https://travis-ci.org/manleyjster/Leaflet.Illustrate/builds/30615143)):\r\n```bash\r\nERROR [launcher]: Cannot start Chrome\r\n\tCan not find the binary google-chrome\r\n\tPlease set env variable CHROME_BIN\r\n```\r\nAfter doing some research, I added the lines \r\n```\r\n- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -\r\n- sudo sh -c 'echo \"deb http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'\r\n- sudo apt-get update -qq\r\n- sudo apt-get install -qq google-chrome-stable\r\n```\r\nto my `.travis.yml` file under `before_install` (thanks to [issue #2370](https://github.com/travis-ci/travis-ci/issues/2370)).\r\n\r\nMy next travis-ci build gave the error messages:\r\n```\r\nINFO [launcher]: Starting browser Chrome\r\nWARN [launcher]: Chrome have not captured in 60000 ms, killing.\r\nINFO [launcher]: Trying to start Chrome again (1/2).\r\nWARN [launcher]: Chrome have not captured in 60000 ms, killing.\r\nINFO [launcher]: Trying to start Chrome again (2/2).\r\nWARN [launcher]: Chrome have not captured in 60000 ms, killing.\r\nERROR [launcher]: Chrome failed 2 times (timeout). Giving up.\r\n```\r\nThe build log can be perused here: [https://travis-ci.org/manleyjster/Leaflet.Illustrate/builds/30615630](https://travis-ci.org/manleyjster/Leaflet.Illustrate/builds/30615630).\r\n\r\nAny idea what's causing it?\r\n"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/71654933","html_url":"https://github.com/travis-ci/travis-ci/issues/2555#issuecomment-71654933","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/2555","id":71654933,"user":{"login":"voronianski","id":974035,"avatar_url":"https://avatars.githubusercontent.com/u/974035?v=3","gravatar_id":"","url":"https://api.github.com/users/voronianski","html_url":"https://github.com/voronianski","followers_url":"https://api.github.com/users/voronianski/followers","following_url":"https://api.github.com/users/voronianski/following{/other_user}","gists_url":"https://api.github.com/users/voronianski/gists{/gist_id}","starred_url":"https://api.github.com/users/voronianski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voronianski/subscriptions","organizations_url":"https://api.github.com/users/voronianski/orgs","repos_url":"https://api.github.com/users/voronianski/repos","events_url":"https://api.github.com/users/voronianski/events{/privacy}","received_events_url":"https://api.github.com/users/voronianski/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T14:23:00Z","updated_at":"2015-01-27T14:23:00Z","body":"@n1k0 @BanzaiMan I've managed to run my karma tests in Chrome on travis,\r\n\r\ntake a look on config - https://github.com/voronianski/soundcloud-audio.js/blob/master/karma.conf.js#L58\r\nand `.yml` file - https://github.com/voronianski/soundcloud-audio.js/blob/master/.travis.yml#L4\r\n\r\nThis should help!"}}