ext-uv/travis-install.sh
2016-02-08 02:27:34 +01:00

15 lines
542 B
Bash

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