Skip to content

Commit

Permalink
test coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Oct 14, 2015
1 parent dfcbb57 commit 9cdd01b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
20 changes: 11 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
language: php

php:
- hhvm
- 5.6
- 5.5
- 5.4
- 7.0
- nightly

before_install:
- mkdir -p /home/travis/.phpenv/versions/hhvm/etc

before_script:
- phpenv config-add phpunit.cnf.ini
- composer self-update
- composer update --no-dev -o
- composer self-update
- phpenv config-add phpunit.cnf.ini
- composer update
- composer require satooshi/php-coveralls

script:
- mkdir -p build/logs
- phpunit -v --coverage-clover build/logs/clover.xml

script: phpunit --stderr --coverage-text
after_script:
- chmod 777 build/logs/clover.xml
- php vendor/bin/coveralls -v

notifications:
on_success: change
Expand All @@ -27,4 +30,3 @@ matrix:
allow_failures:
- php: 7.0
- php: nightly
- php: hhvm
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aloframework/config",
"description": "Allows easy, interfaceable class configuration with the ability to change the configuration during runtime",
"description": "Allows easy, interfaceable class configurator with the ability to change the configuration during runtime",
"prefer-stable": true,
"type": "library",
"license": "GPL-3.0+",
Expand Down
7 changes: 6 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@
</testsuites>

<filter>
<whitelist addUncoveredFilesFromWhitelist="false">
<whitelist>
<directory suffix=".php">src</directory>

<exclude>
<directory suffix=".php">vendor</directory>
</exclude>
</whitelist>
</filter>

<logging>
<log type="coverage-html" target="coverage"/>
<log type="coverage-text" target="php://stdout"/>
</logging>
</phpunit>

0 comments on commit 9cdd01b

Please sign in to comment.