mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +08:00
77086c9be6
We need to run PhpUnit with xDebug enabled in order to collect code coverage information. It is disabled for performance reasons, though: https://github.com/travis-ci/travis-ci/issues/5780.
36 lines
613 B
YAML
36 lines
613 B
YAML
language: php
|
|
|
|
php:
|
|
- 5.5
|
|
- 5.6
|
|
- 7.0
|
|
- hhvm
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- php: hhvm
|
|
fast_finish: true
|
|
|
|
before_script:
|
|
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi;
|
|
- composer self-update
|
|
- composer install
|
|
|
|
script:
|
|
- vendor/bin/phpunit -c tests/phpunit.xml --coverage-clover=coverage.xml
|
|
|
|
notifications:
|
|
email:
|
|
on_failure: change
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/7b9e9827a03b44a16588
|
|
on_success: always
|
|
on_failure: always
|
|
on_start: false
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
sudo: false
|