graphql-php/.travis.yml

34 lines
851 B
YAML
Raw Normal View History

language: php
dist: trusty
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
- nightly
matrix:
allow_failures:
- php: nightly
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
- composer selfupdate
install:
2016-11-01 13:39:52 +03:00
- composer install --dev --prefer-dist
- composer require react/promise:2.*
2017-08-15 17:56:21 +03:00
- composer require psr/http-message:1.*
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:
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then composer require "satooshi/php-coveralls:^1.0" && travis_retry php bin/coveralls -v; fi