2015-07-29 23:29:24 +02:00
|
|
|
sudo: false
|
|
|
|
|
2015-04-29 17:29:09 +02:00
|
|
|
language: php
|
2015-07-19 19:29:25 +02:00
|
|
|
|
2017-01-07 16:08:12 +01:00
|
|
|
php:
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
|
|
|
- nightly
|
|
|
|
|
2017-01-12 03:25:45 +01:00
|
|
|
matrix:
|
2016-09-07 23:49:47 +02:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
|
|
|
fast_finish: true
|
|
|
|
|
2017-01-12 03:25:45 +01:00
|
|
|
env:
|
|
|
|
- DEPS=lowest
|
|
|
|
- DEPS=highest
|
|
|
|
|
2015-09-17 18:14:30 +02:00
|
|
|
install:
|
2017-03-10 18:26:17 +01:00
|
|
|
- git clone https://github.com/libuv/libuv;
|
2016-12-29 06:11:47 +01:00
|
|
|
pushd libuv;
|
2016-12-29 06:52:07 +01:00
|
|
|
git checkout $(git describe --tags);
|
2016-12-29 06:11:47 +01:00
|
|
|
./autogen.sh;
|
|
|
|
./configure --prefix=$(dirname `pwd`)/libuv-install;
|
|
|
|
make;
|
|
|
|
make install;
|
|
|
|
popd;
|
|
|
|
git clone https://github.com/bwoebi/php-uv.git;
|
|
|
|
pushd php-uv;
|
|
|
|
phpize;
|
|
|
|
./configure --with-uv=$(dirname `pwd`)/libuv-install;
|
|
|
|
make;
|
|
|
|
make install;
|
|
|
|
popd;
|
|
|
|
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')";
|
2017-03-10 18:26:17 +01:00
|
|
|
|
2016-12-29 06:11:47 +01:00
|
|
|
- curl -LS https://pecl.php.net/get/ev | tar -xz;
|
|
|
|
pushd ev-*;
|
|
|
|
phpize;
|
|
|
|
./configure;
|
|
|
|
make;
|
|
|
|
make install;
|
|
|
|
popd;
|
|
|
|
echo "extension=ev.so" >> "$(php -r 'echo php_ini_loaded_file();')";
|
2017-01-05 19:57:35 +01:00
|
|
|
- curl -LS https://pecl.php.net/get/event | tar -xz;
|
|
|
|
pushd event-*;
|
|
|
|
phpize;
|
|
|
|
./configure --with-event-core --with-event-extra --with-event-pthreads;
|
|
|
|
make;
|
|
|
|
make install;
|
|
|
|
popd;
|
|
|
|
echo "extension=event.so" >> "$(php -r 'echo php_ini_loaded_file();')";
|
2017-03-10 18:26:17 +01:00
|
|
|
|
2017-01-12 03:25:45 +01:00
|
|
|
- if [ "$DEPS" = "lowest" ]; then
|
|
|
|
composer update -n --prefer-source --prefer-lowest;
|
|
|
|
else
|
|
|
|
composer update -n --prefer-source;
|
|
|
|
fi;
|
2017-01-13 19:11:11 +01:00
|
|
|
- composer show
|
2015-07-19 19:29:25 +02:00
|
|
|
|
|
|
|
script:
|
2016-08-11 21:35:58 +02:00
|
|
|
- phpdbg -qrr 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:
|
2016-08-11 21:35:58 +02:00
|
|
|
- composer require satooshi/php-coveralls dev-master
|
2015-07-29 22:55:32 +02:00
|
|
|
- php vendor/bin/coveralls -v
|
2016-04-01 16:42:32 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|