1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00
amp/.travis.yml

22 lines
974 B
YAML
Raw Normal View History

2015-04-29 17:29:09 +02:00
language: php
2015-07-19 19:29:25 +02:00
2015-04-29 17:29:09 +02:00
php:
2015-05-04 18:55:49 +02:00
- 5.5
- 5.6
2015-07-19 19:29:25 +02:00
- 7
2015-04-29 17:29:09 +02:00
before_script:
- 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 ..)
2015-07-19 19:29:25 +02:00
- composer self-update
- composer install
2015-07-19 19:29:25 +02:00
script:
- 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