.travis.yml
language: php
git:
depth: 5
matrix:
include:
- php: 5.5
dist: trusty
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4snapshot
before_script:
- if [[ $TRAVIS_PHP_VERSION =~ ^nightly ]]; then COMPOSER_FLAGS='--ignore-platform-reqs'; fi
- travis_retry composer self-update
- travis_retry composer install ${COMPOSER_FLAGS} --no-interaction --prefer-source --dev
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.xml
after_script:
- cp coverage.xml clover.xml
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT
after_success:
- bash <(curl -s https://codecov.io/bash)
addons:
code_climate:
repo_token: d16eac66156a1f7a995de17964d4ffdd152821ab52e8470b5dbd5d3406406836
env:
global:
- COMPOSER_FLAGS=''
- CC_TEST_REPORTER_ID=d16eac66156a1f7a995de17964d4ffdd152821ab52e8470b5dbd5d3406406836