diff options
author | Joakim Söderberg <joakim.soderberg@gmail.com> | 2014-12-10 22:30:33 +0100 |
---|---|---|
committer | Joakim Söderberg <joakim.soderberg@gmail.com> | 2014-12-12 23:57:01 +0100 |
commit | 19f33c0e71a950c673db39ed3e8c00eee928aad3 (patch) | |
tree | e04121039d8000167d57f36a8a9fdd5d10662afb /README.rst | |
parent | 1c38ab17f5ab7e5f555b134fbb48eec049f383f1 (diff) | |
download | jansson-19f33c0e71a950c673db39ed3e8c00eee928aad3.zip jansson-19f33c0e71a950c673db39ed3e8c00eee928aad3.tar.gz jansson-19f33c0e71a950c673db39ed3e8c00eee928aad3.tar.bz2 |
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)
Diffstat (limited to 'README.rst')
0 files changed, 0 insertions, 0 deletions