X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=8d0cf8170f15a6064d079d789d73ed98892040d7;hb=f90af145caa040d17f2fb01e78b645c4157c3781;hp=1d90a7489b738ed7351f5ca2a3a4a58c7b2ece7b;hpb=71691fe44a7b2a80f3b9d96d54720cce7994ad08;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index 1d90a748..8d0cf817 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,45 @@ language: php +# 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: - - refactor + only: + - v2 -before_script: - - composer self-update - - echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini +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 -f app/build.xml prepare - - phpunit -c app --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