X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=8d0cf8170f15a6064d079d789d73ed98892040d7;hb=0e7cf1fc502e6d01f3059cb821420485bcb4614a;hp=2971c5b9e8ba4cbf636465375ad2808570df56c2;hpb=367664ee87cbfb1bb318f71af84eb84cdbc11555;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index 2971c5b9..8d0cf817 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,45 @@ language: php + +# faster builds on docker-container setup +sudo: false + +# cache vendor dirs +cache: + directories: + - vendor + - $HOME/.composer/cache + php: - - 5.5 + - 5.4 + - 5.5 + - 5.6 + - hhvm + - nightly + +matrix: + fast_finish: true + allow_failures: + - php: hhvm + - php: nightly + branches: - only: - - refactor \ No newline at end of file + only: + - v2 + +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 + - 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