.travis.yml
language: php
dist: trusty
matrix:
include:
- php: 5.4
dist: precise
env: PHP_VERSION="5.4"
- php: 5.5
env: PHP_VERSION="5.5"
- php: 5.6
env: PHP_VERSION="5.6"
- php: 7.0
env: PHP_VERSION="7.0"
- php: 7.1
env: PHP_VERSION="7.1"
- php: 7.2
env: PHP_VERSION="7.2"
- php: 7.3
env: PHP_VERSION="7.3"
- php: 7.4
env: PHP_VERSION="7.4"
addons:
code_climate:
repo_token: f9071e1c401405352f81116648f1b362b7887d1c8542ad39e5a56569edcc97e8
before_script:
- travis_retry composer install
script:
- mkdir -p build/logs
- if [ `echo "$PHP_VERSION < 7.3" | bc` == 1 ]; then vendor/bin/phpunit --coverage-clover build/logs/coverage-clover.xml; fi
- if [ `echo "$PHP_VERSION >= 7.3" | bc` == 1 ]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover build/logs/coverage-clover.xml; fi
after_success:
- vendor/bin/test-reporter --coverage-report build/logs/coverage-clover.xml
- vendor/bin/coveralls -v