Skip to content

Commit f338049

Browse files
committed
build: Add testing for PHP 7.4
* Fix the PHP 7.3 build, which recently started failing due to Travis upgrading php-xdebug to a version that no longer provides its coverage by default, causing PHPUnit's coverage job to get confused and emit an error. Ref xdebug/xdebug#699. * Update php-coveralls to a version that supports and is tested with PHP 7.4 (this version also dropped HHVM support). <https://github.com/php-coveralls/php-coveralls/blob/v2.4.3/CHANGELOG.md>
1 parent 6e10125 commit f338049

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
sudo: false
2-
dist: trusty
31
language: php
42
php:
3+
- "7.4"
54
- "7.3"
65
- "7.2"
6+
env:
7+
global:
8+
# Since PHP 7.3, php-xdebug is disabled by default unless this is set.
9+
- XDEBUG_MODE=coverage
710
install:
811
- composer install
912
script:
1013
- composer test
1114
after_success:
12-
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.2/coveralls.phar
15+
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/coveralls.phar
1316
- chmod +x coveralls.phar
1417
- ./coveralls.phar -v
1518
notifications:

0 commit comments

Comments
 (0)