Skip to content

Commit d4ad633

Browse files
committed
change README.md badges and add new coverage.svg badge
1 parent ac36f55 commit d4ad633

File tree

4 files changed

+35
-7
lines changed

4 files changed

+35
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Added
1313
- Parameter in `reset` method to optionally preserve the resumptionToken
14+
- GitHub Actions build status badge in `README.md`
15+
- Automatic SVG badge generation for code coverage
16+
17+
### Removed
18+
- `.travis.yml` build support (switched to Github Actions)
1419

1520
## [v3.2] - 2020-09-13
1621
### Changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ PHPOAIPMH
33

44
## A PHP OAI-PMH harvester client library
55

6-
[![Latest Version](https://img.shields.io/github/release/caseyamcl/phpoaipmh.svg?style=flat-square?style=flat-square)](https://github.com/caseyamcl/phpoaipmh/releases)
7-
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
8-
[![Build Status](https://travis-ci.org/caseyamcl/Phpoiapmh.png)](https://travis-ci.org/caseyamcl/Phpoiapmh.png)
9-
[![Total Downloads](https://img.shields.io/packagist/dt/caseyamcl/Phpoaipmh.svg?style=flat-square)](https://packagist.org/packages/caseyamcl/Phpoaipmh)
10-
[![Scrutinizer](https://img.shields.io/scrutinizer/g/caseyamcl/phpoaipmh.svg?style=flat-square)](https://scrutinizer-ci.com/g/caseyamcl/phpoaipmh/)
6+
[![Latest Version](https://img.shields.io/github/release/caseyamcl/phpoaipmh.svg)](https://github.com/caseyamcl/phpoaipmh/releases)
7+
[![Total Downloads](https://img.shields.io/packagist/dt/caseyamcl/Phpoaipmh.svg)](https://packagist.org/packages/caseyamcl/Phpoaipmh)
8+
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
9+
[![Github Build](https://github.com/caseyamcl/phpoaipmh/workflows/Github%20Build/badge.svg)](https://github.com/caseyamcl/phpoaipmh/actions?query=workflow%3A%22Github+Build%22)
10+
[![Code coverage](https://github.com/caseyamcl/toc/blob/master/coverage.svg)](coverage.svg)
11+
[![Scrutinizer](https://img.shields.io/scrutinizer/g/caseyamcl/phpoaipmh.svg)](https://scrutinizer-ci.com/g/caseyamcl/phpoaipmh/)
1112

1213
This library provides an interface to harvest OAI-PMH metadata
1314
from any [OAI 2.0 compliant endpoint](http://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats).

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"symfony/console": "^3.4|^4.3|^5.0",
2626
"symfony/dependency-injection": "^3.4.26|^4.3|^5.0",
2727
"symfony/config": "^3.4|^4.3|^5.0",
28-
"symfony/yaml": "^3.4|^4.3|^5.0"
28+
"symfony/yaml": "^3.4|^4.3|^5.0",
29+
"jaschilz/php-coverage-badger": "^2.0"
2930
},
3031
"autoload": {
3132
"psr-4": {
@@ -34,7 +35,7 @@
3435
}
3536
},
3637
"scripts": {
37-
"test": "phpunit",
38+
"test": "phpunit; vendor/bin/php-coverage-badger build/logs/clover.xml ./coverage.svg",
3839
"quicktest": "phpunit --no-coverage",
3940
"check-style": "phpcs -p --standard=PSR12 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
4041
"fix-style": "phpcbf -p --standard=PSR12 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests"

coverage.svg

Lines changed: 21 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)