ext-uv/travis-install.sh

14 lines
438 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set -o pipefail
# install 'libuv'
2016-02-08 02:16:01 +01:00
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 ..
#install 'php-uv'
2016-02-08 02:16:01 +01:00
phpize && ./configure --with-uv=$(readlink -f `pwd`/libuv) && make && make install
echo "extension = uv.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini