-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Scrutinizer integration (mostly failing tests) (#682)
* attempt to fix scrutinizer tests; also removing current workaround * RawDataParserTest: marked a test as memory-heavy because it keeps failing due to not enough memory: https://scrutinizer-ci.com/g/smalot/pdfparser/inspections/2ffb5293-e8a3-422b-a726-48229a359df4 * .scrutinizer: fixed some config issues; added options to speed up checks * at least 1 test keeps failing because of memory; attempt to increase memory in config * try test again without memory-heave group
- Loading branch information
Showing
2 changed files
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters