2017-09-17 11:20:30 +02:00
|
|
|
sudo: required
|
2015-07-29 23:29:24 +02:00
|
|
|
|
2015-04-29 17:29:09 +02:00
|
|
|
language: php
|
2015-07-19 19:29:25 +02:00
|
|
|
|
2017-09-17 11:20:30 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libevent-dev
|
|
|
|
|
2017-01-07 16:08:12 +01:00
|
|
|
php:
|
|
|
|
- nightly
|
|
|
|
|
2017-01-12 03:25:45 +01:00
|
|
|
matrix:
|
2018-07-24 18:02:04 +02:00
|
|
|
# allow_failures:
|
|
|
|
# - php: nightly
|
2016-09-07 23:49:47 +02:00
|
|
|
fast_finish: true
|
|
|
|
|
2017-12-02 16:54:28 +01:00
|
|
|
env:
|
|
|
|
- AMP_DEBUG=true
|
|
|
|
|
2017-05-26 11:42:25 +02:00
|
|
|
before_install:
|
2017-07-09 14:20:40 +02:00
|
|
|
- phpenv config-rm xdebug.ini || echo "No xdebug config."
|
2017-05-26 11:42:25 +02:00
|
|
|
|
2015-09-17 18:14:30 +02:00
|
|
|
install:
|
2018-07-24 18:00:42 +02:00
|
|
|
- travis/install-async.sh
|
2018-07-24 18:12:50 +02:00
|
|
|
- # Disabled due to segfaults: travis/install-uv.sh
|
2018-07-24 18:18:45 +02:00
|
|
|
- # Disabled due to segfaults: travis/install-ev.sh
|
2017-04-23 14:32:22 +02:00
|
|
|
- travis/install-event.sh
|
2017-04-26 20:41:10 +02:00
|
|
|
|
2017-12-02 17:14:21 +01:00
|
|
|
- composer update -n --prefer-dist
|
2017-04-26 20:41:10 +02:00
|
|
|
|
2018-12-25 14:05:19 +01:00
|
|
|
- wget https://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -O php-cs-fixer
|
|
|
|
- chmox +x php-cs-fixer
|
|
|
|
|
2017-04-26 20:41:10 +02:00
|
|
|
- mkdir -p coverage/cov coverage/bin
|
2017-04-26 20:55:04 +02:00
|
|
|
- wget https://phar.phpunit.de/phpcov.phar -O coverage/bin/phpcov
|
2017-04-26 20:41:10 +02:00
|
|
|
- chmod +x coverage/bin/phpcov
|
|
|
|
|
2017-01-13 19:11:11 +01:00
|
|
|
- composer show
|
2015-07-19 19:29:25 +02:00
|
|
|
|
|
|
|
script:
|
2017-04-24 18:59:55 +02:00
|
|
|
# Run testNoMemoryLeak separately, as those are skipped with enabled coverage
|
2017-04-26 20:27:59 +02:00
|
|
|
- php vendor/bin/phpunit --verbose --group memoryleak
|
2017-05-07 19:02:22 +02:00
|
|
|
- phpdbg -qrr vendor/bin/phpunit --verbose --exclude-group memoryleak --coverage-php coverage/cov/main.cov
|
2018-12-25 14:05:19 +01:00
|
|
|
- PHP_CS_FIXER_IGNORE_ENV=1 ./php-cs-fixer --diff --dry-run -v fix
|
2015-07-19 19:29:25 +02:00
|
|
|
|
|
|
|
after_script:
|
2017-12-02 17:14:21 +01:00
|
|
|
- curl -OL https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.0/coveralls.phar
|
|
|
|
- chmod +x coveralls.phar
|
2017-05-28 17:23:16 +02:00
|
|
|
- phpdbg -qrr coverage/bin/phpcov merge --clover build/logs/clover.xml coverage/cov
|
2017-12-02 17:14:21 +01:00
|
|
|
- ./coveralls.phar
|
2017-03-25 21:40:22 +01:00
|
|
|
|
2016-04-01 16:42:32 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
2017-03-25 21:40:22 +01:00
|
|
|
- $HOME/.composer/cache/files
|
2018-07-10 20:55:12 +02:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: change
|