From 9cd6222d397b0c14d06ce88519083fe168716a30 Mon Sep 17 00:00:00 2001 From: CismonX Date: Tue, 24 Mar 2020 11:07:16 +0800 Subject: [PATCH] integrating Codecov --- .gitignore | 15 +++++++++------ .travis.yml | 5 ++++- README.md | 1 + 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 5490167..b7ae528 100644 --- a/.gitignore +++ b/.gitignore @@ -28,11 +28,14 @@ missing mkinstalldirs modules run-tests.php -tests/*/*.diff -tests/*/*.out -tests/*/*.php -tests/*/*.exp -tests/*/*.log -tests/*/*.sh +tests/*.diff +tests/*.out +tests/*.php +tests/*.exp +tests/*.log +tests/*.sh .idea/ .vscode/ +*.gcov +*.gcda +*.gcno diff --git a/.travis.yml b/.travis.yml index b20dfc5..d20ddc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,9 @@ php: script: - phpize - ./configure - - make + - make EXTRA_CFLAGS='-coverage' EXTRA_LDFLAGS='-fprofile-arcs' - make test + - gcov --object-directory=src/.libs src/*.c +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 3416ee6..145a820 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # ext-collections [![Travis-CI](https://travis-ci.com/CismonX/ext-collections.svg?branch=master)](https://travis-ci.com/CismonX/ext-collections) +[![Codecov](https://codecov.io/gh/CismonX/ext-collections/branch/master/graphs/badge.svg)](https://codecov.io/gh/CismonX/ext-collections) [![MIT license](https://img.shields.io/badge/licence-MIT-blue.svg)](https://opensource.org/licenses/MIT) ## 1. Introduction