Cachet/.travis.yml

22 lines
755 B
YAML
Raw Normal View History

2014-11-28 09:11:06 +00:00
language: php
php:
- 5.5.9
2015-12-22 20:03:05 +00:00
- 5.5
- 5.6
- 7.0
- hhvm
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
install:
2015-10-07 14:03:16 +01:00
- travis_retry composer install --no-interaction --no-scripts --prefer-source
script:
- if [ "$TRAVIS_PHP_VERSION" != "5.6" ] || [ "$TRAVIS_PULL_REQUEST" != false ]; then vendor/bin/phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ] && [ "$TRAVIS_PULL_REQUEST" == false ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi
after_script:
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ] && [ "$TRAVIS_PULL_REQUEST" == false ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ] && [ "$TRAVIS_PULL_REQUEST" == false ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi