2015-01-30 09:09:53 +01:00
|
|
|
language: php
|
2015-01-31 09:15:51 +01:00
|
|
|
|
2015-03-28 00:23:25 +01:00
|
|
|
# faster builds on docker-container setup
|
2015-03-27 19:47:30 +01:00
|
|
|
sudo: false
|
|
|
|
|
2015-03-28 00:23:25 +01:00
|
|
|
# cache vendor dirs
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- vendor
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2015-01-30 11:23:18 +01:00
|
|
|
php:
|
2015-03-28 00:23:25 +01:00
|
|
|
- 5.4
|
|
|
|
- 5.5
|
|
|
|
- 5.6
|
|
|
|
- hhvm
|
|
|
|
- nightly
|
2015-03-27 19:58:48 +01:00
|
|
|
|
|
|
|
matrix:
|
2015-03-28 00:23:25 +01:00
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- php: hhvm
|
|
|
|
- php: nightly
|
2015-01-31 09:15:51 +01:00
|
|
|
|
2015-01-19 13:37:32 +01:00
|
|
|
branches:
|
2015-03-28 00:23:25 +01:00
|
|
|
only:
|
|
|
|
- v2
|
|
|
|
|
|
|
|
install:
|
|
|
|
- composer self-update
|
2015-01-31 09:15:51 +01:00
|
|
|
|
2015-03-28 00:23:25 +01:00
|
|
|
# build coverage only on one build, to speed up results feedbacks
|
2015-01-31 09:15:51 +01:00
|
|
|
before_script:
|
2015-03-28 21:45:35 +01:00
|
|
|
- if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
|
2015-01-31 09:15:51 +01:00
|
|
|
|
|
|
|
script:
|
2015-03-28 00:23:25 +01:00
|
|
|
- ant prepare
|
2015-03-28 21:45:35 +01:00
|
|
|
- phpunit --exclude-group command-doctrine $PHPUNIT_FLAGS
|
2015-03-28 00:23:25 +01:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- |
|
|
|
|
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
|
|
|
|
wget https://scrutinizer-ci.com/ocular.phar
|
|
|
|
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
|
|
|
fi
|