X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=5b5b18087f500c7d0ae6218ad1792e52a3ace7b1;hb=f6f1abd4c0706ccedd5c88c90ac2bc251f78baa1;hp=29ca7dc3a80d925775e5b38b7c2f6814d1b05b28;hpb=71460a8ba56daf74b7e069b25590f3b5e71ce7ce;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index 29ca7dc3..5b5b1808 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,17 @@ 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: @@ -20,14 +20,12 @@ cache: - vendor - $HOME/.composer/cache - node_modules - - $HOME/.cache/bower - $HOME/.npm + - $HOME/.yarn-cache php: - - 5.5 - - 5.6 - - 7.0 - 7.1 + - 7.2 - nightly node_js: @@ -41,7 +39,7 @@ env: 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: nightly @@ -60,19 +58,25 @@ before_script: - if [[ $DB = pgsql ]]; then psql -c 'create database wallabag_test;' -U postgres; fi; install: - - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.7; fi; - - if [[ $ASSETS = build ]]; then npm install -g npm@latest; fi; - - if [[ $ASSETS = build ]]; then npm install; fi; + - if [[ $ASSETS = build ]]; then source ~/.nvm/nvm.sh && nvm install 6.10; fi; + - if [[ $ASSETS = build ]]; then npm install -g yarn@latest; fi; + - if [[ $ASSETS = build ]]; then yarn install; fi; 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 + - 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" + + - make 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/grunt-cli/bin/grunt tests; fi; + - if [[ $ASSETS = build ]]; then yarn run build:prod; fi;