2014-11-28 09:11:06 +00:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
2015-11-16 11:33:05 +08:00
|
|
|
- 7.0
|
|
|
|
- hhvm
|
2015-05-25 18:28:56 +01:00
|
|
|
- 5.5.9
|
2014-11-28 09:12:02 +00:00
|
|
|
- 5.5
|
|
|
|
- 5.6
|
2014-11-28 09:11:06 +00:00
|
|
|
|
2014-12-21 11:39:16 +00:00
|
|
|
sudo: false
|
2014-11-28 09:11:06 +00:00
|
|
|
|
2015-10-07 14:01:54 +01:00
|
|
|
install:
|
2015-10-07 14:03:16 +01:00
|
|
|
- travis_retry composer install --no-interaction --no-scripts --prefer-source
|
2015-01-03 23:11:50 +00:00
|
|
|
|
2015-01-01 17:31:42 +00:00
|
|
|
script:
|
2015-10-07 14:01:54 +01:00
|
|
|
- if [ "$TRAVIS_PHP_VERSION" != "5.5.9" ] && [ "$TRAVIS_PHP_VERSION" != "5.5" ] && [ "$TRAVIS_PHP_VERSION" != "5.6" ]; then vendor/bin/phpunit; fi
|
|
|
|
- if [ "$TRAVIS_PHP_VERSION" == "5.5.9" ] || [ "$TRAVIS_PHP_VERSION" == "5.5" ] || [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi
|
2015-01-01 17:31:42 +00:00
|
|
|
|
|
|
|
after_script:
|
2015-10-07 14:01:54 +01:00
|
|
|
- if [ "$TRAVIS_PHP_VERSION" == "5.5.9" ] || [ "$TRAVIS_PHP_VERSION" == "5.5" ] || [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
|
|
|
|
- if [ "$TRAVIS_PHP_VERSION" == "5.5.9" ] || [ "$TRAVIS_PHP_VERSION" == "5.5" ] || [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi
|