{"action":"created","issue":{"url":"https://api.github.com/repos/onesky/api-library-php5/issues/18","labels_url":"https://api.github.com/repos/onesky/api-library-php5/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/onesky/api-library-php5/issues/18/comments","events_url":"https://api.github.com/repos/onesky/api-library-php5/issues/18/events","html_url":"https://github.com/onesky/api-library-php5/issues/18","id":79441625,"number":18,"title":"Add code coverage badge to project.","user":{"login":"BernardoSilva","id":1537510,"avatar_url":"https://avatars.githubusercontent.com/u/1537510?v=3","gravatar_id":"","url":"https://api.github.com/users/BernardoSilva","html_url":"https://github.com/BernardoSilva","followers_url":"https://api.github.com/users/BernardoSilva/followers","following_url":"https://api.github.com/users/BernardoSilva/following{/other_user}","gists_url":"https://api.github.com/users/BernardoSilva/gists{/gist_id}","starred_url":"https://api.github.com/users/BernardoSilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BernardoSilva/subscriptions","organizations_url":"https://api.github.com/users/BernardoSilva/orgs","repos_url":"https://api.github.com/users/BernardoSilva/repos","events_url":"https://api.github.com/users/BernardoSilva/events{/privacy}","received_events_url":"https://api.github.com/users/BernardoSilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-22T12:43:40Z","updated_at":"2015-06-09T09:51:44Z","closed_at":null,"body":"Add project to: https://scrutinizer-ci.com/\r\n\r\nOnce you added this project need to do those changes:\r\n\r\nOn `.travis.yml`  add this:\r\n```yml\r\nafter_script:\r\n    - wget https://scrutinizer-ci.com/ocular.phar\r\n    - php ocular.phar code-coverage:upload --format=php-clover coverage.clover\r\n```\r\n\r\nCreate new file: `.scrutinizer.yml`\r\n```yml\r\nimports:\r\n    - php\r\n\r\ntools:\r\n    external_code_coverage:\r\n        timeout: 1200    # Timeout in seconds.\r\n```\r\n\r\nAdd code coverage badge to `README.md`\r\n```md\r\n[![Code Coverage](https://scrutinizer-ci.com/g/onesky/api-library-php5/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/onesky/api-library-php5/?branch=master)\r\n```"},"comment":{"url":"https://api.github.com/repos/onesky/api-library-php5/issues/comments/110297828","html_url":"https://github.com/onesky/api-library-php5/issues/18#issuecomment-110297828","issue_url":"https://api.github.com/repos/onesky/api-library-php5/issues/18","id":110297828,"user":{"login":"BernardoSilva","id":1537510,"avatar_url":"https://avatars.githubusercontent.com/u/1537510?v=3","gravatar_id":"","url":"https://api.github.com/users/BernardoSilva","html_url":"https://github.com/BernardoSilva","followers_url":"https://api.github.com/users/BernardoSilva/followers","following_url":"https://api.github.com/users/BernardoSilva/following{/other_user}","gists_url":"https://api.github.com/users/BernardoSilva/gists{/gist_id}","starred_url":"https://api.github.com/users/BernardoSilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BernardoSilva/subscriptions","organizations_url":"https://api.github.com/users/BernardoSilva/orgs","repos_url":"https://api.github.com/users/BernardoSilva/repos","events_url":"https://api.github.com/users/BernardoSilva/events{/privacy}","received_events_url":"https://api.github.com/users/BernardoSilva/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T09:51:44Z","updated_at":"2015-06-09T09:51:44Z","body":"@VLMH Created a PR #21  that should work once you add the project to [scrutinizer-ci](https://scrutinizer-ci.com/)"}}