From 2bacbaa52a7805998bb63330ad5c544881b71f44 Mon Sep 17 00:00:00 2001 From: mnpk Date: Wed, 10 Jun 2015 18:13:47 +0900 Subject: [PATCH] Add Coveralls integration and coverage badge --- .travis.yml | 7 ++++++- README.md | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ffc9b582e..2b2d636ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,14 @@ language: cpp notifications: - irc: "chat.freenode.net##crow" + # irc: "chat.freenode.net##crow" compiler: - gcc #- clang before_script: + - sudo pip install cpp-coveralls - sudo add-apt-repository -y ppa:kalakris/cmake - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo add-apt-repository -y ppa:boost-latest/ppa @@ -22,3 +23,7 @@ before_script: - cmake .. script: make && ctest + +after_success: + - cd .. + - coveralls --gcov gcov-4.8 -i include --gcov-options '\-lp' diff --git a/README.md b/README.md index a3e2742c7..d0a832c48 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ Crow is C++ microframework for web. (inspired by Python Flask) -![Travis Build](https://travis-ci.org/ipkn/crow.svg?branch=master) +![Travis Build](https://travis-ci.org/mnpk/crow.svg?branch=master) +[![Coverage Status](https://coveralls.io/repos/mnpk/crow/badge.svg?branch=master)](https://coveralls.io/r/mnpk/crow?branch=master) ```c++ #include "crow.h"