Skip to content

Commit

Permalink
Merge pull request #12 from abacaphiliac/develop
Browse files Browse the repository at this point in the history
integrate with scrutinizer.
  • Loading branch information
abacaphiliac committed Apr 12, 2016
2 parents 6eecdf1 + 18812d2 commit 9d63ae5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.idea
build
vendor
composer.lock
composer.lock
coverage.clover
25 changes: 13 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
language: php
php:
- '5.3'
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

env:
- COMPOSER_OPTS=""
- COMPOSER_OPTS="--prefer-lowest"
matrix:
allow_failures:
- php: 7.0
- php: hhvm

before_install:
fast_finish: true
before_script:
- composer self-update

install:
- composer install --no-interaction

script:
- ./vendor/bin/phing
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[![Build Status](https://travis-ci.org/abacaphiliac/events-capable.svg)](https://travis-ci.org/abacaphiliac/events-capable)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/abacaphiliac/events-capable/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/abacaphiliac/events-capable/?branch=develop)
[![Code Coverage](https://scrutinizer-ci.com/g/abacaphiliac/events-capable/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/abacaphiliac/events-capable/?branch=develop)
[![Build Status](https://travis-ci.org/abacaphiliac/events-capable.svg?branch=develop)](https://travis-ci.org/abacaphiliac/events-capable)

# abacaphiliac/events-capable
Tired of writing backwards-compatible logic in all of your factory code to wire up listeners? Is your service
Expand All @@ -15,7 +17,7 @@ to attach to the service's event manager.
Install the latest version with

```bash
$ composer require abacaphiliac/events-capable
composer require abacaphiliac/events-capable
```

## Basic Usage (Configuration)
Expand Down Expand Up @@ -55,3 +57,15 @@ return [
],
];
```

## Contributing
```
composer install && vendor/bin/phing
```

This library attempts to comply with [PSR-1][], [PSR-2][], and [PSR-4][]. If
you notice compliance oversights, please send a patch via pull request.

[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[PSR-4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</target>

<target name="unit-tests">
<exec command="./vendor/bin/phpunit --coverage-text=php://stdout"
<exec command="./vendor/bin/phpunit --coverage-text=php://stdout --coverage-clover=coverage.clover"
passthru="true"
output="/dev/stdout"
error="/dev/stdout"
Expand Down

0 comments on commit 9d63ae5

Please sign in to comment.