add coverage

This commit is contained in:
Robin Appelman 2014-07-22 01:15:11 +02:00
commit 2e8af98252
2 changed files with 10 additions and 3 deletions

View file

@ -32,9 +32,13 @@ before_install:
- testparm -s - testparm -s
install: install:
- composer install - composer install --dev --no-interaction
script: script:
# Run phpunit tests - mkdir -p build/logs
- cd tests - cd tests
- phpunit --configuration phpunit.xml - phpunit --coverage-clover ../build/logs/clover.xml --configuration phpunit.xml
after_script:
- cd $CURRENT_DIR
- php vendor/bin/coveralls -v

View file

@ -12,6 +12,9 @@
"require" : { "require" : {
"php": ">=5.3" "php": ">=5.3"
}, },
"require-dev": {
"satooshi/php-coveralls" : "dev-master"
},
"autoload" : { "autoload" : {
"psr-4": { "psr-4": {
"Icewind\\SMB\\": "src/" "Icewind\\SMB\\": "src/"