36 lines
832 B
YAML
36 lines
832 B
YAML
language: php
|
|
|
|
sudo: false
|
|
|
|
php:
|
|
- 5.4
|
|
- 5.5
|
|
- 5.6
|
|
- 7.0
|
|
- hhvm
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- php: 7.0
|
|
- php: hhvm
|
|
include:
|
|
- php: 5.4
|
|
env:
|
|
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
|
|
- PHPUNIT_FLAGS="--coverage-text --coverage-clover=coverage.clover"
|
|
- COVERAGE=true
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
|
|
install:
|
|
- if [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then composer require mongofill/mongofill=dev-master --no-update; fi
|
|
- travis_retry composer update --no-progress --no-plugins ${COMPOSER_FLAGS}
|
|
|
|
script: phpunit ${PHPUNIT_FLAGS}
|
|
|
|
after_script:
|
|
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
|
|
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
|