X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=5741b533a51aeb7d893c62c024daba1898f7b6ff;hb=0d3043a29c4aba541d6a18c2d5cc7ebffc6ddc78;hp=9ae43639743a7b8b971d4b798d62083eb0907557;hpb=3ee1582e60cbebb70f6e4b932e337a59a8517580;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index 9ae43639..5741b533 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,18 +34,22 @@ matrix: allow_failures: - php: hhvm +# exclude v1 branches branches: - only: - - v2 + except: + - master + - dev before_script: - 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 [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi; - - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi; + - 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 + - travis_wait composer install --no-interaction --no-progress --prefer-dist -o - ant prepare-$DB - bin/phpunit -v