Skip to content

Commit

Permalink
Updated libraries to include coverage information, made their READMEs…
Browse files Browse the repository at this point in the history
… consistent, moved json_path out of coveralls.yml to .travis.yml calls
  • Loading branch information
davidbyoung committed Apr 14, 2020
1 parent d85c42a commit 1cf58e3
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 11 deletions.
17 changes: 9 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.idea
.php_cs.cache
.phpunit.result.cache
composer.lock
composer.phar
nbproject/
phpunit.phar
vendor/
.coverage/
.idea/
.php_cs.cache
.phpunit.result.cache
composer.lock
composer.phar
nbproject/
phpunit.phar
vendor/
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@ php:
- 7.4

before_script:
- if php -v | grep -q 'Xdebug'; then phpenv config-rm xdebug.ini; fi
- pecl install pcov
- composer self-update
- composer install
- composer dump-autoload -o

script:
- vendor/bin/phpunit --verbose
- vendor/bin/phpunit --coverage-clover ./.coverage/clover.xml --verbose
- composer run-script lint-check

after_success:
- vendor/bin/php-coveralls --coverage_clover=./.coverage/clover.xml --json_path=./coveralls-upload.json -v

notifications:
email:
- dave@aphiria.com
Expand Down
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
<h1>Reflection</h1>
<p align="center"><a href="https://www.aphiria.com" target="_blank" title="Aphiria"><img src="https://www.aphiria.com/images/aphiria-logo.svg"></a></p>

<p align="center">

[![Build Status](https://travis-ci.com/aphiria/reflection.svg)](https://travis-ci.com/aphiria/reflection)
[![Coverage Status](https://coveralls.io/repos/github/aphiria/reflection/badge.svg?branch=master)](https://coveralls.io/github/aphiria/reflection?branch=master)
[![Latest Stable Version](https://poser.pugx.org/aphiria/reflection/v/stable.svg)](https://packagist.org/packages/aphiria/reflection)
[![Latest Unstable Version](https://poser.pugx.org/aphiria/reflection/v/unstable.svg)](https://packagist.org/packages/aphiria/reflection)
[![License](https://poser.pugx.org/aphiria/reflection/license.svg)](https://packagist.org/packages/aphiria/reflection)

</p>

# Reflection

> **Note:** This library is not stable yet.
<h1>Documentation</h1>
## Installation

This library can be installed via [Composer](https://getcomposer.org/download/):

```php
composer require aphiria/reflection:^1.0@dev
```

## Documentation

Full documentation is available <a href="https://www.aphiria.com/docs/master/reflection.html" target="_blank">here</a>.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"php-coveralls/php-coveralls": "^2.2",
"phpunit/phpunit": "~9.1"
},
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="./.coverage"/>
</logging>
</phpunit>

0 comments on commit 1cf58e3

Please sign in to comment.