Cachet/.travis.yml
James Brooks 2982b87861 Added nightly building to Travis
Let's us check PHP 7 compatibility
2015-02-26 13:56:17 +00:00

27 lines
766 B
YAML

language: php
php:
- 5.4
- 5.5
- 5.6
- nightly
- hhvm
matrix:
allow_failures:
- php: nightly
sudo: false
install: travis_retry composer install --no-interaction --ignore-platform-reqs --no-scripts --prefer-source
before_script: php artisan cachet:one-click-deploy
script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "hhvm" ]; then vendor/bin/phpunit; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi;'
after_script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'