install:
- composer self-update --2
- composer update --ignore-platform-req=php
- - composer remove phpunit/phpunit
+ - 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
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
script:
- make clean
- make check_permissions
+ - make code_sniffer
- make all_tests