X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.travis.yml;h=0de2f1245e27a959f81658de7286fe211efa5120;hb=affa6602f01c38614da07f5ffac60148bfd53def;hp=0ca1e192c49b0d333623b5e78006d6320fb61964;hpb=e19fc0266514efc13efe56f55ddbf3ecc940c2e8;p=github%2Fwallabag%2Fwallabag.git diff --git a/.travis.yml b/.travis.yml index 0ca1e192..0de2f124 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,8 @@ language: php services: + - mysql + - postgresql - rabbitmq - redis @@ -18,7 +20,7 @@ php: - 7.1 - 7.2 - 7.3 - - nightly + - 7.4 node_js: - "5" @@ -34,7 +36,7 @@ matrix: - php: 7.2 env: CS_FIXER=run VALIDATE_TRANSLATION_FILE=run ASSETS=build DB=sqlite allow_failures: - - php: nightly + - php: 7.4 # exclude v1 branches branches: @@ -51,20 +53,24 @@ install: before_script: - PHP=$TRAVIS_PHP_VERSION - - if [[ ! $PHP = hhvm* ]]; then echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi; - # xdebug isn't enable for PHP 7.1 - - if [[ ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi + - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini + - phpenv config-rm xdebug.ini || echo "xdebug not available" - composer self-update --no-progress + # install imagick + - pear config-set preferred_state beta + - pecl channel-update pecl.php.net + - yes | pecl install imagick script: - 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 SYMFONY_PHPUNIT_VERSION=6.5 ./bin/simple-phpunit -v ; fi; + - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then ./bin/simple-phpunit -v ; fi; # PHPStan needs PHPUnit to be installed and cache app to be generated - if [[ $VALIDATE_TRANSLATION_FILE = '' ]]; then php bin/phpstan analyse src tests --no-progress --level 1 ; fi; - if [[ $CS_FIXER = run ]]; then php bin/php-cs-fixer fix --verbose --dry-run ; fi;