2017-06-30 18:05:48 +00:00
|
|
|
dist: trusty
|
2013-08-07 17:33:05 +00:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
2014-02-11 17:23:35 +00:00
|
|
|
- 5.6
|
2015-03-26 16:20:47 +00:00
|
|
|
- 7.0
|
2016-08-23 12:39:56 +00:00
|
|
|
- 7.1
|
2017-12-12 15:25:10 +00:00
|
|
|
- 7.2
|
2018-11-06 21:56:19 +00:00
|
|
|
- 7.3
|
2014-02-11 17:23:35 +00:00
|
|
|
- hhvm
|
2013-08-07 17:33:05 +00:00
|
|
|
|
2015-07-28 21:20:17 +00:00
|
|
|
# This triggers builds to run on the new TravisCI infrastructure.
|
|
|
|
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
|
2015-07-28 21:11:05 +00:00
|
|
|
sudo: false
|
|
|
|
|
2016-06-08 20:23:32 +00:00
|
|
|
## Cache composer
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2015-03-26 16:20:47 +00:00
|
|
|
matrix:
|
2015-02-11 10:57:20 +00:00
|
|
|
include:
|
2016-08-23 12:39:56 +00:00
|
|
|
- php: 5.6
|
2015-02-11 10:57:20 +00:00
|
|
|
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
|
2015-03-26 16:20:47 +00:00
|
|
|
|
2013-08-07 17:33:05 +00:00
|
|
|
before_script:
|
2016-06-08 20:23:32 +00:00
|
|
|
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
|
2013-08-07 17:33:05 +00:00
|
|
|
|
|
|
|
script:
|
2015-10-04 21:55:33 +00:00
|
|
|
- vendor/bin/phpcs --standard=psr2 src/
|
2015-07-27 13:24:08 +00:00
|
|
|
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
|
2014-10-07 09:02:20 +00:00
|
|
|
|
|
|
|
after_script:
|
2016-09-19 06:29:46 +00:00
|
|
|
- |
|
|
|
|
if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' && "$TRAVIS_PHP_VERSION" != '7.0' ]]; then
|
|
|
|
wget https://scrutinizer-ci.com/ocular.phar
|
|
|
|
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
|
|
|
fi
|