3 # faster builds on docker-container setup
17 - $HOME/.composer/cache
33 - DB=mysql ASSETS=nobuild
34 - DB=pgsql ASSETS=nobuild
35 - DB=sqlite ASSETS=nobuild
41 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite ASSETS=nobuild
43 env: DB=sqlite ASSETS=build
46 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
56 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
57 - if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi;
58 - if [ "$TRAVIS_PHP_VERSION" = "5.5" ]; then composer require "phpunit/phpunit:4.*" --no-update; fi;
59 - composer self-update --no-progress
60 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
63 - if [[ $ASSETS != nobuild ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi;
64 - if [[ $ASSETS != nobuild ]]; then npm install -g npm@latest; fi;
67 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
70 - travis_wait bash install.sh
73 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
74 - if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;