.travis.yml
language: php
sudo: false
php:
- 7.0
- 5.6
- 5.5
- 5.4
install:
- composer install --prefer-source
before_script:
- if [ $TRAVIS_PHP_VERSION = '7.0' ]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; fi
script:
- phpunit $PHPUNIT_FLAGS
after_script:
- if [ $TRAVIS_PHP_VERSION = '7.0' ]; then php vendor/bin/test-reporter; fi
cache:
directories:
- vendor
- $HOME/.composer/cache