X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=fc9a38c26b2d8c1c91997aa7902a6158cb6687b4;hb=7d997fd9f675b07e667e92b76e09b520f9760208;hp=9ae43639743a7b8b971d4b798d62083eb0907557;hpb=e72a943ad244f8b6349e31eb9a148808045b224b;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index 9ae43639..fc9a38c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ addons: # cache vendor dirs cache: + apt: true directories: - vendor - $HOME/.composer/cache @@ -22,30 +23,39 @@ php: - hhvm env: - - DB=mysql - - DB=pgsql - - DB=sqlite + - DB=mysql + - DB=pgsql + - DB=sqlite matrix: fast_finish: true + include: + - php: 7.0 + env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite exclude: - php: hhvm env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency 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 + - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi; + - if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations ; fi;