# cache vendor dirs
cache:
+ apt: true
directories:
- vendor
- $HOME/.composer/cache
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
- 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;