1
0
mirror of https://github.com/danog/file.git synced 2025-01-22 13:21:13 +01:00

Add PHP 7 coverage

This commit is contained in:
Bob Weinand 2015-08-07 17:56:04 +02:00
parent f04447152d
commit d3517cb7d7
2 changed files with 5 additions and 7 deletions

View File

@ -7,18 +7,16 @@ php:
- 5.6
- 7
matrix:
allow_failures:
- php: 7
before_script:
- yes "" | pecl install eio
- php -r 'exit((int) (PHP_MAJOR_VERSION < 7));' || (yes "" | pecl install eio)
- php -r 'exit((int) (PHP_MAJOR_VERSION >= 7));' || (mkdir libuv && (curl -L https://github.com/libuv/libuv/archive/v1.6.1.tar.gz | tar xzf -) && cd libuv-1.6.1 && ./autogen.sh && ./configure --prefix=$(readlink -f `pwd`/../libuv) && make && make install && cd ..)
- php -r 'exit((int) (PHP_MAJOR_VERSION >= 7));' || (git clone https://github.com/bwoebi/php-uv && cd php-uv && phpize && ./configure --with-uv=$(readlink -f `pwd`/../libuv) && make install && (echo "extension = uv.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini) && cd ..)
- composer self-update
- composer require satooshi/php-coveralls:dev-master
- composer install
script:
- vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- $(php -r 'if (PHP_MAJOR_VERSION >= 7) echo "phpdbg -qrr"; else echo "php";') vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
- php vendor/bin/php-cs-fixer --diff --dry-run -v fix
after_script:

View File

@ -26,7 +26,7 @@
"amphp/amp": "^1"
},
"require-dev": {
"phpunit/phpunit": "~4.4.0",
"phpunit/phpunit": "~4.8",
"fabpot/php-cs-fixer": "~1.9"
},
"autoload": {