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
40 # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
50 - mysql-client-core-5.6
60 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run DB=sqlite ASSETS=nobuild
62 env: DB=sqlite ASSETS=build
74 - PHP=$TRAVIS_PHP_VERSION
75 - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi;
76 # xdebug isn't enable for PHP 7.1
77 - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
78 - if [[ $PHP = 5.5 ]]; then composer require "phpunit/phpunit:4.*" --no-update; fi;
79 - composer self-update --no-progress
80 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag_test;' -U postgres; fi;
83 - if [[ $ASSETS != nobuild ]]; then source ~/.nvm/nvm.sh && nvm install 5.0; fi;
84 - if [[ $ASSETS != nobuild ]]; then npm install -g npm@latest; fi;
87 - if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
90 - travis_wait bash install.sh
93 - if [ "$CS_FIXER" = "run" ]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; fi;
94 - if [ "$VALIDATE_TRANSLATION_FILE" = "run" ]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;