{"id":16609346,"url":"https://github.com/pcolby/lcoveralls","last_synced_at":"2025-10-29T16:32:45.255Z","repository":{"id":16087971,"uuid":"18832678","full_name":"pcolby/lcoveralls","owner":"pcolby","description":"Report Gcov / LCOV (ie C, C++, Go, etc) code coverage to coveralls.io","archived":false,"fork":false,"pushed_at":"2019-06-26T02:21:45.000Z","size":101,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-17T14:03:23.428Z","etag":null,"topics":["codecoverage","coveralls","gcov","lcov","testcoverage"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pcolby.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-16T08:36:13.000Z","updated_at":"2021-09-28T04:03:24.000Z","dependencies_parsed_at":"2022-09-11T17:54:08.605Z","dependency_job_id":null,"html_url":"https://github.com/pcolby/lcoveralls","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcolby%2Flcoveralls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcolby%2Flcoveralls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcolby%2Flcoveralls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcolby%2Flcoveralls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcolby","download_url":"https://codeload.github.com/pcolby/lcoveralls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857408,"owners_count":16556062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codecoverage","coveralls","gcov","lcov","testcoverage"],"created_at":"2024-10-12T01:28:49.871Z","updated_at":"2025-10-29T16:32:39.950Z","avatar_url":"https://github.com/pcolby.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lcoveralls\n[![Build Status](http://img.shields.io/travis/pcolby/lcoveralls.svg)](https://travis-ci.org/pcolby/lcoveralls)\n[![Gem Version](http://img.shields.io/gem/v/lcoveralls.svg)](https://rubygems.org/gems/lcoveralls)\n[![Github Release](http://img.shields.io/github/release/pcolby/lcoveralls.svg)](https://github.com/pcolby/lcoveralls/releases/latest)\n[![Apache License](http://img.shields.io/badge/license-APACHE2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)\n\nLcoveralls is a simple (Ruby) script for reporting code coverage results from\n[LCOV](http://ltp.sourceforge.net/coverage/lcov.php) to [Coveralls](https://coveralls.io/).\nInstead of invoking `gcov` directly, as some alternative projects do (quite successfully),\nLcoveralls depends on the tracefiles that LCOV generates from g++ / gcov's output.\n\n![Lcoveralls Data Flow](\nhttps://raw.githubusercontent.com/pcolby/lcoveralls/master/doc/diagrams/data-flow.png\n\"Data flow from source code, through gcc, lcov, and lcoveralls to coveralls.io\")\n\nThe benefit of using LCOV's tracefiles (aka *.info files) is two-fold:\n\n1. LCOV's inclusion / exclusion logic is well proven, and time tested - no need\n   to reinvent that wheel; and\n2. If you are already using LCOV to generate HTML output (as I usually do), then\n   you only need to define inclusions / exclusions once, instead of having to\n   define that information twice (and in two very different formats).\n\nOf course, the disadvantage to depending on LCOV, is the additional dependency -\nnot an issue for me, but I guess it could be for someone.\n\n## Installation\n\n```\ngem install lcoveralls\n```\n\n## Usage\n\n1. Build your project with gcov support.\n2. Execute your test(s).\n3. Execute `lcov` to generate tracefiles (aka *.info files).\n4. Execute `lcoveralls` to submit the coverage report(s) to Coveralls.\n\nFor example:\n```\ng++ -fprofile-arcs -ftest-coverage -O0 -o test \u003csource files\u003e\n./test\nlcov --capture ... \u0026\u0026 lcov --remove ...\nlcoveralls [--token \u003ccoveralls repo token\u003e]\n```\n\nThe token is not necessary when using Travis CI. Run `lcoveralls --help` for\nmore options.\n\n### Travis CI\n\nTo use Lcoveralls within Travis CI, simply install the gem, and then once all of\nyour tests have passed (including any necessary `lcov` invocations), invoke \nlcoveralls.\n\nFor example:\n\n```\ninstall:\n  - sudo apt-get install lcov rubygems\n  - gem install lcoveralls\n\n...\n\nafter_success:\n  - lcoveralls\n```\n\nNote, if you are using Travis Pro, you should let Lcoveralls know via the\n`--service` option, for example:\n\n```\nafter_success:\n  - lcoverals --service travis-pro\n```\n\nSome real-word Travis CI examples:\n\nProject | .travis.yml\n--------|------------\n[libqtaws](https://github.com/pcolby/libqtaws) | [.travis.yml](https://github.com/pcolby/libqtaws/blob/master/.travis.yml)\n[pcp-pmda-cpp](https://github.com/pcolby/pcp-pmda-cpp) | [.travis.yml](https://github.com/pcolby/pcp-pmda-cpp/blob/master/.travis.yml)\n\n## License\nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcolby%2Flcoveralls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcolby%2Flcoveralls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcolby%2Flcoveralls/lists"}