mirror of
https://github.com/danog/file.git
synced 2025-01-22 13:21:13 +01:00
Update travis build
This commit is contained in:
parent
34599943bc
commit
06c2707c1f
45
.travis.yml
45
.travis.yml
@ -3,21 +3,50 @@ sudo: false
|
||||
language: php
|
||||
|
||||
php:
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7
|
||||
- 7.0
|
||||
- 7.1
|
||||
- nightly
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: nightly
|
||||
fast_finish: true
|
||||
|
||||
before_script:
|
||||
- php -r 'exit((int) (PHP_MAJOR_VERSION < 7));' || (yes "" | pecl install eio)
|
||||
- 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 ..)
|
||||
- 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();')";
|
||||
- curl -LS https://github.com/libuv/libuv/archive/v1.6.1.tar.gz | tar -xz;
|
||||
pushd libuv-*;
|
||||
./autogen.sh;
|
||||
./configure --prefix=$(dirname `pwd`)/libuv;
|
||||
make;
|
||||
make install;
|
||||
popd;
|
||||
git clone https://github.com/bwoebi/php-uv.git;
|
||||
pushd php-uv;
|
||||
phpize;
|
||||
./configure --with-uv=$(dirname `pwd`)/libuv;
|
||||
make;
|
||||
make install;
|
||||
popd;
|
||||
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')";
|
||||
- composer self-update
|
||||
- composer require satooshi/php-coveralls:dev-master
|
||||
- composer install
|
||||
|
||||
script:
|
||||
- $(php -r 'if (PHP_MAJOR_VERSION >= 7) echo "phpdbg -qrr"; else echo "php";') vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
|
||||
- phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
|
||||
- php vendor/bin/php-cs-fixer --diff --dry-run -v fix
|
||||
|
||||
after_script:
|
||||
- composer require satooshi/php-coveralls:dev-master
|
||||
- php vendor/bin/coveralls -v
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user