integrating Codecov

This commit is contained in:
CismonX 2020-03-24 11:07:16 +08:00
parent d7f2835fc0
commit 9cd6222d39
3 changed files with 14 additions and 7 deletions

15
.gitignore vendored
View File

@ -28,11 +28,14 @@ missing
mkinstalldirs mkinstalldirs
modules modules
run-tests.php run-tests.php
tests/*/*.diff tests/*.diff
tests/*/*.out tests/*.out
tests/*/*.php tests/*.php
tests/*/*.exp tests/*.exp
tests/*/*.log tests/*.log
tests/*/*.sh tests/*.sh
.idea/ .idea/
.vscode/ .vscode/
*.gcov
*.gcda
*.gcno

View File

@ -11,6 +11,9 @@ php:
script: script:
- phpize - phpize
- ./configure - ./configure
- make - make EXTRA_CFLAGS='-coverage' EXTRA_LDFLAGS='-fprofile-arcs'
- make test - make test
- gcov --object-directory=src/.libs src/*.c
after_success:
- bash <(curl -s https://codecov.io/bash)

View File

@ -1,6 +1,7 @@
# ext-collections # ext-collections
[![Travis-CI](https://travis-ci.com/CismonX/ext-collections.svg?branch=master)](https://travis-ci.com/CismonX/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) [![MIT license](https://img.shields.io/badge/licence-MIT-blue.svg)](https://opensource.org/licenses/MIT)
## 1. Introduction ## 1. Introduction