graphql-php/.travis.yml

67 lines
1.8 KiB
YAML
Raw Normal View History

dist: trusty
2018-06-16 01:04:32 +03:00
language: php
php:
- 7.1
- 7.2
2018-11-29 13:10:51 +03:00
- 7.3
2019-02-09 22:18:27 +03:00
- 7.4snapshot
- nightly
env:
matrix:
2018-12-30 02:51:55 +03:00
- EXECUTOR= DEPENDENCIES=--prefer-lowest
- EXECUTOR=coroutine DEPENDENCIES=--prefer-lowest
- EXECUTOR=
2018-12-30 02:51:55 +03:00
- 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
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:
2019-02-09 22:18:27 +03:00
- php: 7.4snapshot
2018-06-16 01:04:32 +03:00
- php: nightly
include:
- stage: Test
install:
2018-12-30 02:51:55 +03:00
- travis_retry composer update --prefer-dist {$DEPENDENCIES}
2018-06-16 01:04:32 +03:00
- 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-12-30 02:51:55 +03:00
- ./vendor/bin/phpunit --coverage-php /tmp/coverage/clover_executor.cov
- EXECUTOR=coroutine ./vendor/bin/phpunit --coverage-php /tmp/coverage/clover_executor-coroutine.cov
2018-06-16 01:04:32 +03:00
after_script:
2018-12-30 02:51:55 +03:00
- ./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
2018-08-28 12:28:57 +03:00
- stage: Code Quality
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:
- ./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
2018-12-30 02:51:55 +03:00