mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 12:56:05 +03:00
67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
dist: trusty
|
|
language: php
|
|
|
|
php:
|
|
- 7.1
|
|
- 7.2
|
|
- 7.3
|
|
- 7.4snapshot
|
|
- nightly
|
|
|
|
env:
|
|
matrix:
|
|
- EXECUTOR= DEPENDENCIES=--prefer-lowest
|
|
- EXECUTOR=coroutine DEPENDENCIES=--prefer-lowest
|
|
- EXECUTOR=
|
|
- EXECUTOR=coroutine
|
|
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
|
|
before_install:
|
|
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
|
|
- travis_retry composer self-update
|
|
|
|
install: travis_retry composer update --prefer-dist
|
|
|
|
script: ./vendor/bin/phpunit --group default,ReactPromise
|
|
|
|
jobs:
|
|
allow_failures:
|
|
- php: 7.4snapshot
|
|
- php: nightly
|
|
|
|
include:
|
|
- stage: Test
|
|
install:
|
|
- travis_retry composer update --prefer-dist {$DEPENDENCIES}
|
|
|
|
- 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:
|
|
- ./vendor/bin/phpunit --coverage-php /tmp/coverage/clover_executor.cov
|
|
- EXECUTOR=coroutine ./vendor/bin/phpunit --coverage-php /tmp/coverage/clover_executor-coroutine.cov
|
|
after_script:
|
|
- ./vendor/bin/phpcov merge /tmp/coverage --clover /tmp/clover.xml
|
|
- wget https://github.com/scrutinizer-ci/ocular/releases/download/1.5.2/ocular.phar
|
|
- php ocular.phar code-coverage:upload --format=php-clover /tmp/clover.xml
|
|
|
|
- stage: Code Quality
|
|
php: 7.1
|
|
env: CODING_STANDARD
|
|
install: travis_retry composer install --prefer-dist
|
|
script:
|
|
- ./vendor/bin/phpcs
|
|
|
|
- stage: Code Quality
|
|
php: 7.1
|
|
env: STATIC_ANALYSIS
|
|
install: travis_retry composer install --prefer-dist
|
|
script: composer static-analysis
|
|
|