• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JoakimSoderberg / jansson / 33
89%
master: 90%

Build:
Build:
LAST BUILD BRANCH: friendly_error
DEFAULT BRANCH: master
Ran 12 Dec 2014 11:09PM UTC
Jobs 1
Files 11
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
33

push

travis-ci

JoakimSoderberg
Add support for coverage/coveralls.io in cmake project.

This adds support for http://coveralls.io/ to the cmake project. This can then be run via a new Travis job, which uploads json containing the coverage data to the website.

To use this, please login usin github at http://coveralls.io/ and enable the Jansson project. You can then get a nice percentage badge for code coverage after each Travis buid. Coveralls will also comment on pull request with coverage info.

To test and run it locally do:

```bash
$ mkdir build && cd build
$ cmake -DJANSSON_COVERALLS=ON -DCMAKE_BUILD_TYPE=Debug ..
$ cmake --build .                      # $ make
$ cmake --build . --target coveralls   # $ make coveralls
```

There is also another script that generates a local HTML page using lcov CodeCoverage.cmake which can be run using

```bash
$ make coverage
```

The required depdencies to run this are:
gcov
curl
lcov (is needed for the normal CodeCoverage script)

1499 of 1690 relevant lines covered (88.7%)

175.55 hits per line

Jobs
ID Job ID Ran Files Coverage
5 33.5 (JANSSON_BUILD_METHOD=coverage JANSSON_CMAKE_OPTIONS="-DJANSSON_COVERAGE=ON -DJANSSON_COVERALLS=ON -DCMAKE_BUILD_TYPE=Debug" JANSSON_EXTRA_INSTALL="lcov curl") 12 Dec 2014 11:09PM UTC 0
88.7
Travis Job 33.5
Source Files on build 33
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #33
  • 19f33c0e on github
  • Prev Build on coveralls (#32)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc