1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 05:11:42 +01:00

Properly use the existing tools if available

This commit is contained in:
Bob Weinand 2015-07-29 22:55:32 +02:00 committed by Daniel Lowrey
parent 8bcbba41a0
commit d3d99875a8

View File

@ -1,5 +1,3 @@
sudo: false
language: php
php:
@ -7,13 +5,11 @@ php:
- 5.6
- 7
matrix:
allow_failures:
- php: 7
before_script:
- yes "" | pecl install "channel://pecl.php.net/libevent-0.1.0"
- yes "" | pecl install ev
- 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));' || ((curl -L https://github.com/joyent/libuv/archive/v1.0.0.tar.gz | tar xzf -) && cd libuv-1.0.0 && ./autogen.sh && ./configure --prefix=/usr && make && sudo make install && cd ..)
- php -r 'exit((int) (PHP_MAJOR_VERSION >= 7));' || (git clone https://github.com/bwoebi/php-uv && cd php-uv && phpize && ./configure && make install && (echo "extension = uv.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini) && cd ..)
- composer self-update
- composer install
@ -22,4 +18,4 @@ script:
- php vendor/bin/php-cs-fixer --diff --dry-run -v fix
after_script:
- php vendor/bin/coveralls -v
- php vendor/bin/coveralls -v