From 74c333066904d0766e198dbf0d810bc13677a5ac Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Mon, 18 Dec 2017 20:03:11 +0200 Subject: [PATCH] Add coveralls Send test coverage statistics to coveralls to provide a visual way to monitor the progress of our testing suite. --- .travis.yml | 6 +++++- README.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ba198d0..9f77bdc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,11 @@ addons: dist: trusty sudo: false language: c -script: CFLAGS=-Werror make all dunstify test +before_install: + - pip install --user cpp-coveralls +script: + - CFLAGS="-fprofile-arcs -ftest-coverage -Werror" make all dunstify test + - coveralls compiler: - gcc - clang diff --git a/README.md b/README.md index 808cb76..b955018 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/dunst-project/dunst.svg?branch=master)](https://travis-ci.org/dunst-project/dunst) +[![Build Status](https://travis-ci.org/dunst-project/dunst.svg?branch=master)](https://travis-ci.org/dunst-project/dunst) [![Coverage Status](https://coveralls.io/repos/github/dunst-project/dunst/badge.svg?branch=coveralls)](https://coveralls.io/github/dunst-project/dunst?branch=master) ## Dunst