2017-09-17 11:38:16 +02:00
|
|
|
sudo: required
|
2015-07-29 23:29:24 +02:00
|
|
|
|
2015-04-29 17:29:09 +02:00
|
|
|
language: php
|
2015-07-19 19:29:25 +02:00
|
|
|
|
2017-09-17 11:38:16 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libevent-dev
|
|
|
|
|
2015-04-29 17:29:09 +02:00
|
|
|
php:
|
2015-05-04 18:55:49 +02:00
|
|
|
- 5.5
|
|
|
|
- 5.6
|
2015-08-07 17:20:02 +02:00
|
|
|
- 7.0
|
2017-06-17 14:35:55 +02:00
|
|
|
- 7.1
|
2017-09-17 11:38:16 +02:00
|
|
|
- 7.2
|
2015-09-17 18:14:30 +02:00
|
|
|
- nightly
|
2015-07-19 19:29:25 +02:00
|
|
|
|
2017-09-17 11:38:16 +02:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
|
|
|
fast_finish: true
|
|
|
|
|
2015-09-17 18:14:30 +02:00
|
|
|
install:
|
2015-07-29 22:55:32 +02:00
|
|
|
- php -r 'exit((int) (PHP_MAJOR_VERSION < 7));' || (yes "" | pecl install "channel://pecl.php.net/libevent-0.1.0")
|
|
|
|
- php -r 'exit((int) (PHP_MAJOR_VERSION < 7));' || (yes "" | pecl install ev)
|
2017-06-17 14:35:55 +02:00
|
|
|
- php -r 'exit((int) (PHP_MAJOR_VERSION >= 7));' || (mkdir libuv && (curl -L https://github.com/libuv/libuv/archive/v1.x.tar.gz | tar xzf -) && cd libuv-1.x && ./autogen.sh && ./configure --prefix=$(readlink -f `pwd`/../libuv) && make && make install && cd ..)
|
2015-07-29 23:29:24 +02:00
|
|
|
- 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 ..)
|
2015-08-02 21:59:10 +02:00
|
|
|
- composer require satooshi/php-coveralls:dev-master
|
2015-07-19 19:41:40 +02:00
|
|
|
- composer install
|
2015-07-19 19:29:25 +02:00
|
|
|
|
|
|
|
script:
|
2015-08-01 23:36:53 +02:00
|
|
|
- $(php -r 'if (PHP_MAJOR_VERSION >= 7) echo "phpdbg -qrr"; else echo "php";') vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
|
2015-07-19 19:29:25 +02:00
|
|
|
- php vendor/bin/php-cs-fixer --diff --dry-run -v fix
|
|
|
|
|
|
|
|
after_script:
|
2015-07-29 22:55:32 +02:00
|
|
|
- php vendor/bin/coveralls -v
|
2017-06-17 14:35:55 +02:00
|
|
|
|
2016-04-01 16:42:32 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|