X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=3c97a9da46d15cff826e68c4b8353608ed931d42;hb=164bd801188245942ca996eda75d7a554f29746a;hp=9d6ba1321a338e3366cd056915f66cc0845c6de7;hpb=a3436d4cbaa3ad059e64bd77cfe789beecacf87c;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index 9d6ba132..3c97a9da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +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.4 + - 5.5 + - 5.6 + - hhvm + - nightly + +matrix: + fast_finish: true + allow_failures: + - php: hhvm + - php: nightly branches: - only: - - dev + only: + - v2 +install: + - composer self-update + +# build coverage only on one build, to speed up results feedbacks before_script: - - composer install + - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi; + +script: + - ant prepare + - phpunit --exclude-group command-doctrine $PHPUNIT_FLAGS -notifications: - email: - - nicolas.loeuillet@gmail.com \ No newline at end of file +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