matrix-php-sdk/.travis.yml

37 lines
819 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:
- 7.0
- 7.1
- 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
# 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:
- 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