2017-06-03 11:01:30 +03:00
|
|
|
dist: trusty
|
2018-06-16 01:04:32 +03:00
|
|
|
language: php
|
2017-06-03 11:01:30 +03:00
|
|
|
|
2015-10-17 18:24:19 +03:00
|
|
|
php:
|
2018-09-02 17:31:14 +03:00
|
|
|
- 7.1
|
|
|
|
- 7.2
|
|
|
|
- nightly
|
2016-11-12 12:09:19 +03:00
|
|
|
|
|
|
|
cache:
|
2018-09-02 17:31:14 +03:00
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
2016-11-12 12:09:19 +03:00
|
|
|
|
|
|
|
before_install:
|
2018-09-02 17:31:14 +03:00
|
|
|
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
|
|
|
|
- travis_retry composer self-update
|
2015-10-17 18:24:19 +03:00
|
|
|
|
2018-08-28 14:33:32 +03:00
|
|
|
install: travis_retry composer update --prefer-dist
|
2018-06-16 01:04:32 +03:00
|
|
|
|
2018-08-28 14:32:01 +03:00
|
|
|
script: ./vendor/bin/phpunit --group default,ReactPromise
|
2018-06-16 01:04:32 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
|
|
|
|
|
|
|
include:
|
|
|
|
- stage: Test
|
|
|
|
env: DEPENDENCIES=low
|
|
|
|
install:
|
|
|
|
- travis_retry composer update --prefer-dist --prefer-lowest
|
|
|
|
|
|
|
|
- stage: Test
|
|
|
|
env: COVERAGE
|
|
|
|
before_script:
|
|
|
|
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
|
|
|
|
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi
|
|
|
|
script:
|
2018-08-28 14:32:01 +03:00
|
|
|
- ./vendor/bin/phpunit --coverage-clover clover.xml
|
2018-06-16 01:04:32 +03:00
|
|
|
after_script:
|
|
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
|
|
- php ocular.phar code-coverage:upload --format=php-clover clover.xml
|
2018-09-02 17:31:14 +03:00
|
|
|
|
2018-08-28 12:28:57 +03:00
|
|
|
- stage: Code Quality
|
2018-09-02 17:31:14 +03:00
|
|
|
php: 7.1
|
2018-09-02 18:23:07 +03:00
|
|
|
env: CODING_STANDARD
|
2018-06-16 00:49:40 +03:00
|
|
|
install: travis_retry composer install --prefer-dist
|
|
|
|
script:
|
2018-09-02 17:31:14 +03:00
|
|
|
- ./vendor/bin/phpcs
|
2018-08-28 12:28:57 +03:00
|
|
|
|
|
|
|
- stage: Code Quality
|
2018-09-02 18:47:58 +03:00
|
|
|
php: 7.1
|
2018-08-28 12:28:57 +03:00
|
|
|
env: STATIC_ANALYSIS
|
|
|
|
install: travis_retry composer install --prefer-dist
|
|
|
|
script: composer static-analysis
|