Skip to content

Commit 23ebcea

Browse files
committed
Add coveralls.
1 parent 6594388 commit 23ebcea

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.coveralls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
service_name: travis-ci

.travis.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,25 @@ php:
66
- 5.6
77
- hhvm
88

9+
env:
10+
global:
11+
- setup=stable
12+
- coverage=no
13+
914
before_script:
10-
- composer self-update
11-
- composer install --prefer-source --no-interaction --dev
15+
- travis_retry composer self-update
16+
- composer config discard-changes true
17+
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-source --no-interaction --prefer-stable; fi
18+
- if [[ $setup = 'coveralls' ]]; then travis_retry composer require "psr/log=1.0.0" "satooshi/php-coveralls=~0.6" "symfony/yaml=~2.0" --prefer-source --no-interaction --dev; fi
19+
20+
script:
21+
- if [[ $coverage = 'yes' ]]; then phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml; fi
22+
- if [[ $coverage = 'no' ]]; then phpunit -c phpunit.xml; fi
23+
24+
after_script:
25+
- if [[ $setup = 'coveralls' ]]; then php vendor/bin/coveralls -v; fi
1226

13-
script: phpunit
27+
matrix:
28+
include:
29+
- php: 5.5
30+
env: setup=coveralls coverage=yes

0 commit comments

Comments
 (0)