Skip to content

Commit a7d7e08

Browse files
committed
kbsali#99 added configuration for travis-ci.com and code coverage reporting to scrutinizer-ci.com
1 parent afff2c8 commit a7d7e08

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
phpunit.xml
22
composer.lock
33
composer.phar
4-
vendor
4+
vendor
5+
coverage.clover
6+

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ language: php
33
php:
44
- 5.4
55
- 5.5
6+
- hhvm
67

78
before_script:
89
- composer install --dev --prefer-source
910

1011
script:
1112
- phpunit --coverage-text
13+
14+
after_script:
15+
- wget https://scrutinizer-ci.com/ocular.phar
16+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

phpunit.xml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@
2828
<directory suffix=".php">./lib/Redmine/</directory>
2929
</whitelist>
3030
</filter>
31+
32+
<logging>
33+
<log type="coverage-clover" target="coverage.clover"/>
34+
</logging>
35+
3136
</phpunit>

0 commit comments

Comments
 (0)