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