Skip to content

Commit a36624f

Browse files
committed
Adds coveralls test coverage support.
1 parent 8443ccc commit a36624f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ php:
55
- '7.1'
66
- nightly
77

8+
# Install test coverage package.
9+
install:
10+
- composer require satooshi/php-coveralls
11+
12+
# Install packages and create test coverage log directory.
813
before_script:
914
- composer self-update
10-
- composer install --dev
15+
- composer install --dev --no-interaction
16+
- mkdir -p build/logs
1117

18+
# Run tests and generate test coverage report.
1219
script:
13-
- phpunit -d api_key=$API_KEY
20+
- phpunit -d api_key=$API_KEY --coverage-clover build/logs/clover.xml
1421

1522
notifications:
1623
email:

0 commit comments

Comments
 (0)