diff --git a/.scrutinizer.yml b/.scrutinizer.yml index f154ce92..60f07edf 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,18 +1,21 @@ build: + cache: + directories: + - vendor # Cache for already installed composer package -> speed up composer install nodes: analysis: + environment: + php: + version: 8.2 + ini: + memory_limit: "-1" + variables: + XDEBUG_MODE: 'coverage' tests: override: - php-scrutinizer-run - - # Forces a certain PHPUnit version (=7.5.x), otherwise some tests fail due - # to not enough memory. - # @https://github.com/smalot/pdfparser/issues/410 - # @https://github.com/smalot/pdfparser/pull/412 - command: make prepare-for-scrutinizer && make install-dev-tools && make run-phpunit ARGS="--exclude-group memory-heavy --coverage-clover coverage/clover.xml" + command: make install-dev-tools && make run-phpunit ARGS="--migrate-configuration" && make run-phpunit ARGS="--exclude-group memory-heavy --coverage-clover coverage/clover.xml" coverage: file: coverage/clover.xml format: clover - environment: - php: - version: 7.4 diff --git a/Makefile b/Makefile index afeb5336..61406039 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,6 @@ install-dev-tools: composer update --working-dir=dev-tools -# Workaround to force PHPUnit 7.5.x when running Scrutinizer. -# Scrutinizer fails due to not enough memory when using a newer PHPUnit version (tested with 9.5). -# @see: https://github.com/smalot/pdfparser/issues/410 -# @see: https://github.com/smalot/pdfparser/pull/412 -prepare-for-scrutinizer: - cd dev-tools && sed -e 's/>=7.5/^7.5/g' composer.json > composer.json2 && rm composer.json && mv composer.json2 composer.json - run-php-cs-fixer: dev-tools/vendor/bin/php-cs-fixer fix $(ARGS)