1
0
mirror of https://github.com/danog/file.git synced 2024-11-26 11:54:54 +01:00

Move extension installation to separate scripts

This commit is contained in:
Aaron Piotrowski 2017-05-18 11:12:17 -05:00
parent 5e5c8ab85b
commit 834ccb42fe
3 changed files with 13 additions and 24 deletions

View File

@ -13,32 +13,10 @@ matrix:
fast_finish: true
install:
- git clone https://bitbucket.org/osmanov/pecl-eio;
pushd pecl-eio;
phpize;
./configure;
make;
make install;
popd;
echo "extension=eio.so" >> "$(php -r 'echo php_ini_loaded_file();')";
- git clone https://github.com/libuv/libuv;
pushd libuv;
git checkout $(git describe --tags);
./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();')";
- composer self-update
- composer install
- travis/install-eio.sh
- travis/install-uv.sh
script:
- phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml

10
travis/install-eio.sh Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
git clone https://github.com/rosmanov/pecl-eio
pushd pecl-eio;
phpize;
./configure;
make;
make install;
popd;
echo "extension=eio.so" >> "$(php -r 'echo php_ini_loaded_file();')";

1
travis/install-uv.sh Symbolic link
View File

@ -0,0 +1 @@
../vendor/amphp/amp/travis/install-uv.sh