X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=8d0cf8170f15a6064d079d789d73ed98892040d7;hb=e62d27ff9b3f07f09a77e075653c6a650860f5ec;hp=a697e74b51bbfe328c2299a98996b13cf14d5bae;hpb=2d733277e614bd4569530e63c676722c2b9df15f;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index a697e74b..8d0cf817 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,45 @@ language: php -# use docker-container infra +# faster builds on docker-container setup sudo: false +# cache vendor dirs +cache: + directories: + - vendor + - $HOME/.composer/cache + php: - - 5.4 - - 5.5 - - 5.6 + - 5.4 + - 5.5 + - 5.6 + - hhvm + - nightly + +matrix: + fast_finish: true + allow_failures: + - php: hhvm + - php: nightly branches: - only: - - v2 + only: + - v2 -before_script: - - composer self-update +install: + - composer self-update + +# build coverage only on one build, to speed up results feedbacks +# before_script: + # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi; script: - - ant prepare - - phpunit --coverage-text + - ant prepare + - bin/phpunit --exclude-group command-doctrine --debug $PHPUNIT_FLAGS + +# 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