matrix-php-sdk/.travis.yml

38 lines
861 B
YAML
Raw Normal View History

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
- 7.0
- 7.1
- 7.2
2014-02-11 17:23:35 +00:00
- hhvm
2013-08-07 17:33:05 +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
## Cache composer
cache:
directories:
- $HOME/.composer/cache
matrix:
include:
- php: 5.6
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
2013-08-07 17:33:05 +00:00
before_script:
- 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/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
2014-10-07 09:02:20 +00:00
after_script:
- |
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