Skip to content

Commit

Permalink
Install uv extension on PHP 7
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Oct 31, 2017
1 parent 072b557 commit c6dcbde
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ addons:
apt:
packages:
- libevent-dev # Used by 'event' and 'libevent' PHP extensions
- libuv-dev # Used by 'uv' PHP extensions

cache:
directories:
Expand Down
13 changes: 13 additions & 0 deletions travis-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,17 @@ if [[ "$TRAVIS_PHP_VERSION" != "hhvm" &&
echo "extension=libev.so" >> "$(php -r 'echo php_ini_loaded_file();')"
fi

# install 'libev' PHP extension (does not support php 7)
if [[ "$TRAVIS_PHP_VERSION" = "7.0" ||
"$TRAVIS_PHP_VERSION" = "7.1" ]]; then
git clone --recursive https://github.com/bwoebi/php-uv
pushd php-uv
phpize
./configure
make
make install
popd
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
fi

fi

0 comments on commit c6dcbde

Please sign in to comment.