1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 05:11:42 +01:00

Merge branch 'event-loop-v0.4' into uv

This commit is contained in:
Aaron Piotrowski 2016-12-28 23:50:30 -06:00
commit 6f2a238087
2 changed files with 31 additions and 7 deletions

View File

@ -6,13 +6,37 @@ php:
- 5.5 - 5.5
- 5.6 - 5.6
- 7.0 - 7.0
- 7.1
- nightly - nightly
install: install:
- php -r 'exit((int) (PHP_MAJOR_VERSION < 7));' || (yes "" | pecl install "channel://pecl.php.net/libevent-0.1.0") - if [ "$TRAVIS_PHP_VERSION" != "5.5" ] && [ "$TRAVIS_PHP_VERSION" != "5.6" ] ; then
- php -r 'exit((int) (PHP_MAJOR_VERSION < 7));' || (yes "" | pecl install ev) git clone https://github.com/libuv/libuv;
- 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 ..) pushd libuv;
- 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 ..) version=$(git describe --tags);
git checkout ${version};
./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();')";
fi;
- 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();')";
- composer self-update - composer self-update
- composer install --no-interaction --prefer-source - composer install --no-interaction --prefer-source
@ -22,8 +46,8 @@ script:
after_script: after_script:
- composer require satooshi/php-coveralls dev-master - composer require satooshi/php-coveralls dev-master
- php vendor/bin/coveralls -v - php vendor/bin/coveralls -v --exclude-no-stmt
cache: cache:
directories: directories:
- $HOME/.composer/cache - $HOME/.composer/cache

View File

@ -426,6 +426,6 @@ abstract class Loop extends Driver {
* @return array * @return array
*/ */
public function __debugInfo() { public function __debugInfo() {
return $this->info(); return $this->getInfo();
} }
} }