language: php
services:
- - rabbitmq
- - redis
+ - rabbitmq
+ - redis
# faster builds on docker-container setup
sudo: false
# used for HHVM
addons:
- apt:
- packages:
- - tidy
+ apt:
+ packages:
+ - tidy
# cache vendor dirs
cache:
- $HOME/.yarn-cache
php:
- - 5.6
- - 7.0
- 7.1
- 7.2
- nightly
matrix:
fast_finish: true
include:
- - php: 7.0
+ - php: 7.2
env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite
allow_failures:
- - php: 7.2
- php: nightly
# exclude v1 branches
- if [[ $TRAVIS_REPO_SLUG = wallabag/wallabag ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
script:
- - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
- - ant prepare-$DB
+ - travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist
- - echo "travis_fold:start:migrations"
- - php bin/console doctrine:migrations:migrate --no-interaction --env=test
- - echo "travis_fold:end:migrations"
+ - echo "travis_fold:start:prepare"
+ - make prepare DB=$DB
+ - echo "travis_fold:end:prepare"
- - echo "travis_fold:start:fixtures"
- - php bin/console doctrine:fixtures:load --no-interaction --env=test
- - echo "travis_fold:end:fixtures"
+ - make fixtures
- - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi;
+ - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then SYMFONY_PHPUNIT_VERSION=7.0 ./bin/simple-phpunit -v --debug --stop-on-failure ; fi;
- if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/CoreBundle/Resources/translations -v ; fi;
- if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml app/Resources/CraueConfigBundle/translations -v ; fi;