Skip to content

Commit

Permalink
Merge pull request #1 from blesta/add-coveralls
Browse files Browse the repository at this point in the history
Added coveralls
  • Loading branch information
clphillips committed Sep 9, 2015
2 parents 9f6768d + 54df1cf commit e0e746d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .travis.yaml → .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ php:
- 5.5
- 5.6
- 7.0
- hhvm
before_script:
- composer install
script:
- ./vendor/bin/phpunit --coverage-text
- ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml --verbose
- ./vendor/bin/phpcs --extensions=php --standard=PSR2 ./src ./tests
after_script:
- php ./vendor/bin/coveralls -v
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Composer Installer

[![Build Status](https://travis-ci.org/blesta/composer-installer.svg)](https://travis-ci.org/blesta/composer-installer)
[![Coverage Status](https://coveralls.io/repos/blesta/composer-installer/badge.svg?branch=master&service=github)](https://coveralls.io/github/blesta/composer-installer?branch=master)

A library for installing Blesta extensions using [composer](http://getcomposer.org).

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"require-dev": {
"phpunit/phpunit": "~4.6",
"squizlabs/php_codesniffer": "~2.2",
"composer/composer": "1.0.*@dev"
"composer/composer": "1.0.*@dev",
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
>
<testsuites>
<testsuite name="Unit">
<directory suffix=".php">./tests/unit</directory>
<directory suffix=".php">tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src</directory>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit e0e746d

Please sign in to comment.