X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=blobdiff_plain;f=.travis.yml;h=cb81846f306a9001721de5e75ede34518e230779;hp=5f86d3388344600455138f51096202ddd08e7c8a;hb=HEAD;hpb=a5a9cf23acd1248585173aa32757d9720b5f2d62 diff --git a/.travis.yml b/.travis.yml index 5f86d338..422bf835 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,9 @@ matrix: install: - composer self-update --2 - composer update --ignore-platform-req=php + - composer remove --dev --ignore-platform-req=php phpunit/phpunit + - composer require --dev --ignore-platform-req=php phpunit/php-text-template ^2.0 + - composer require --dev --ignore-platform-req=php phpunit/phpunit ^9.0 - language: php php: 7.4 - language: php @@ -46,6 +49,10 @@ cache: directories: - $HOME/.composer/cache +before_install: + # Disable xdebug: it significantly speed up tests and linter, and we don't use coverage yet + - phpenv config-rm xdebug.ini || echo 'No xdebug config.' + install: # install/update composer and php dependencies - composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION @@ -57,4 +64,5 @@ before_script: script: - make clean - make check_permissions + - make code_sniffer - make all_tests