2015-10-17 18:24:19 +03:00
|
|
|
language: php
|
|
|
|
|
2017-06-03 11:01:30 +03:00
|
|
|
dist: trusty
|
|
|
|
|
2015-10-17 18:24:19 +03:00
|
|
|
php:
|
|
|
|
- 5.6
|
|
|
|
- 7.0
|
2016-11-01 13:39:52 +03:00
|
|
|
- 7.1
|
2018-03-09 17:03:52 +03:00
|
|
|
- 7.2
|
2016-11-12 12:09:19 +03:00
|
|
|
- nightly
|
|
|
|
|
2018-08-23 09:34:49 +03:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: Code Quality
|
|
|
|
php: 7.2
|
|
|
|
env: STATIC_ANALYSIS
|
|
|
|
install: travis_retry composer install --prefer-dist
|
|
|
|
script: composer static-analysis
|
2017-06-03 11:01:30 +03:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
2016-11-12 12:09:19 +03:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
|
|
|
before_install:
|
2018-03-09 17:03:52 +03:00
|
|
|
- if [[ "$TRAVIS_PHP_VERSION" != "5.6" ]]; then phpenv config-rm xdebug.ini || true; fi
|
|
|
|
- phpenv config-rm xdebug.ini || true
|
2016-11-12 12:09:19 +03:00
|
|
|
- composer selfupdate
|
2015-10-17 18:24:19 +03:00
|
|
|
|
2018-08-23 10:07:05 +03:00
|
|
|
install: composer install --dev --prefer-dist
|
2015-10-17 18:24:19 +03:00
|
|
|
|
2017-06-03 11:34:24 +03:00
|
|
|
script: if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then bin/phpunit --coverage-clover build/logs/clover.xml --group default,ReactPromise; else bin/phpunit --group default,ReactPromise; fi
|
2016-11-01 13:39:52 +03:00
|
|
|
|
|
|
|
after_success:
|
2016-11-12 12:09:19 +03:00
|
|
|
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer require "satooshi/php-coveralls:^1.0" && travis_retry php bin/coveralls -v; fi
|