Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Cleanup travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 29, 2016
1 parent b535a72 commit 11eb032
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,37 @@ php:
- 5.5
- 5.6
- 7.0
- 7.1
- nightly

install:
- php -r 'exit((int) (PHP_MAJOR_VERSION < 7));' || (yes "" | pecl install "channel://pecl.php.net/libevent-0.1.0")
- php -r 'exit((int) (PHP_MAJOR_VERSION < 7));' || (yes "" | pecl install ev)
- 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 ..)
- 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 ..)
- if [ "$TRAVIS_PHP_VERSION" != "5.5" ] && [ "$TRAVIS_PHP_VERSION" != "5.6" ] ; then
git clone https://github.com/libuv/libuv;
pushd libuv;
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 install --no-interaction --prefer-source

Expand All @@ -22,8 +46,8 @@ script:

after_script:
- composer require satooshi/php-coveralls dev-master
- php vendor/bin/coveralls -v
- php vendor/bin/coveralls -v --exclude-no-stmt

cache:
directories:
- $HOME/.composer/cache

0 comments on commit 11eb032

Please sign in to comment.