.travis.yml
sudo: false
dist: trusty
language: php
cache:
directories:
- $HOME/.composer/cache
- vendor
env:
global:
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
matrix:
fast_finish: true
include:
- php: 7.0
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- php: 7.1
env:
- DEPS=latest
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- DEPS=locked
- php: 7.2
env:
- DEPS=latest
- EXECUTE_TEST_COVERALLS=true
- php: hhvm
env:
- DEPS=lowest
- HHVMPHP7="yes"
- php: hhvm
env:
- DEPS=locked
- HHVMPHP7="yes"
- php: hhvm
env:
- DEPS=latest
- HHVMPHP7="yes"
allow_failures:
- php: hhvm
notifications:
email: true
before_install:
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
- travis_retry composer self-update
- travis_retry composer clear-cache
install:
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'locked' ]]; then travis_retry composer install $COMPOSER_ARGS ; fi
- composer show
before_script:
- mkdir -p build/logs
- if [[ $HHVMPHP7 == "yes" ]]; then printf "hhvm.php7.all=1\nhhvm.jit=0\n" >> /etc/hhvm/php.ini; fi
script:
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit -v --debug --coverage-clover clover.xml ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit -v --debug ; fi
after_script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/php-coveralls ; fi