mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
sudo: required
|
|
|
|
language: php
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libevent-dev
|
|
|
|
php:
|
|
- 5.5
|
|
- 5.6
|
|
- 7.0
|
|
- 7.1
|
|
- 7.2
|
|
- nightly
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- php: nightly
|
|
fast_finish: true
|
|
|
|
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.x.tar.gz | tar xzf -) && cd libuv-1.x && ./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 ..)
|
|
- 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
|
|
- php vendor/bin/php-cs-fixer --diff --dry-run -v fix
|
|
|
|
after_script:
|
|
- php vendor/bin/coveralls -v
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|