3 # faster builds on docker-container setup
16 - $HOME/.composer/cache
33 env: DB=pgsql # driver for PostgreSQL currently unsupported by HHVM, requires 3rd party dependency
42 - composer self-update
43 - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
44 # disable xdebug since we don't use code-coverage for now
45 - if [[ $TRAVIS_PHP_VERSION != '5.6' && $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then phpenv config-rm xdebug.ini; fi
46 # build coverage only on one build, to speed up results feedbacks
47 # - if [[ "$TRAVIS_PHP_VERSION" = "5.6" ]]; then PHPUNIT_FLAGS="--coverage-clover=coverage.clover"; else PHPUNIT_FLAGS=""; fi;
48 - if [[ "$DB" = "pgsql" ]]; then psql -c 'create database wallabag;' -U postgres; fi;
52 - SYMFONY_DEPRECATIONS_HELPER=weak bin/phpunit -v
56 # if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
57 # wget https://scrutinizer-ci.com/ocular.phar
58 # php ocular.phar code-coverage:upload --format=php-clover coverage.clover