X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=ce50fcc45673a351e58eaa9760e1b7e00a2858f7;hb=ea60d76e60da4a74493156e43502c0023401391c;hp=dea3da4a04eeaf91381dc86cb8eae66c454bb58c;hpb=42a2139b8f5cdda5bd0d79cb808b4ff414e95a5b;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index dea3da4a..ce50fcc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,14 @@ language: php services: - - rabbitmq - - redis - -# faster builds on docker-container setup -sudo: false + - rabbitmq + - redis # used for HHVM addons: - apt: - packages: - - tidy + apt: + packages: + - tidy # cache vendor dirs cache: @@ -21,11 +18,13 @@ cache: - $HOME/.composer/cache - node_modules - $HOME/.npm + - $HOME/.yarn-cache php: - 5.6 - 7.0 - 7.1 + - 7.2 - nightly node_js: @@ -66,11 +65,18 @@ before_install: - 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 + - COMPOSER_MEMORY_LIMIT=-1 travis_wait bash composer install -o --no-interaction --no-progress --prefer-dist + - 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" + - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi; - - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix src/ --verbose --dry-run ; 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; - if [[ $VALIDATE_TRANSLATION_FILE = run ]]; then php bin/console lint:yaml src/Wallabag/UserBundle/Resources/translations -v ; fi; - - if [[ $ASSETS = build ]]; then ./node_modules/webpack/bin/webpack.js; fi; + - if [[ $ASSETS = build ]]; then yarn run build:prod; fi;