X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=5f0abe8715a5afdd8dcfe153a00a1589ac114d86;hb=14044c99c03d59aba1dbc96ecb7fdd6ad5abb31f;hp=b2747e7ddd3c9656943283ef838e817b9c763b6d;hpb=dc22b46bf3428f0000e21ad831357dee4c91246a;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index b2747e7d..5f0abe87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,12 @@ language: php # faster builds on docker-container setup sudo: false +# used for HHVM +addons: + apt: + packages: + - tidy + # cache vendor dirs cache: directories: @@ -10,7 +16,6 @@ cache: - $HOME/.composer/cache php: - - 5.4 - 5.5 - 5.6 - 7.0 @@ -27,30 +32,24 @@ matrix: - php: hhvm env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency allow_failures: - - php: 7.0 - php: hhvm +# exclude v1 branches branches: - only: - - v2 - -install: - - composer self-update + except: + - master + - dev before_script: - # disable xdebug since we don't use code-coverage for now - - if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi - # build coverage only on one build, to speed up results feedbacks - # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi; - - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi; + - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; + - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi; + - composer self-update --no-progress + - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; + +before_install: + - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi; script: + - travis_wait composer update --no-interaction --no-progress - ant prepare-$DB - - bin/phpunit --exclude-group command-doctrine -v - -# 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 + - bin/phpunit -v