matrix-php-sdk/.travis.yml

39 lines
869 B
YAML
Raw Normal View History

2017-06-30 20:05:48 +02:00
dist: trusty
2013-08-07 19:33:05 +02:00
language: php
php:
2014-02-11 18:23:35 +01:00
- 5.6
- 7.0
- 7.1
- 7.2
2018-11-06 22:56:19 +01:00
- 7.3
2014-02-11 18:23:35 +01:00
- hhvm
2013-08-07 19:33:05 +02: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 23:11:05 +02: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 19:33:05 +02:00
before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
2013-08-07 19:33:05 +02:00
script:
2015-10-04 23:55:33 +02:00
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
2014-10-07 11:02:20 +02: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