Skip to content

Commit f9b4e1b

Browse files
authored
Merge pull request #56 from kabalin/phpdbg-memory-limit
PHPUnitCommand: Disable memory limit for phpdbg run
2 parents d2390e9 + 43cfb26 commit f9b4e1b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ The format of this change log follows the advice given at [Keep a CHANGELOG](htt
1414
This resolves an issue where an "Unable to find local grunt" message was reported when code was structured in a legacy
1515
format. See #46 for more details.
1616

17+
### Changed
18+
- `moodle-plugin-ci phpunit` when coverage report is included, phpdbg is called with ignore memory limits param
19+
to avoid memory exhaused errors.
20+
1721
## [3.0.3] - 2020-10-16
1822
### Changed
1923
- Updated version of [moodle-local_codechecker](https://github.com/moodlehq/moodle-local_codechecker) to v2.9.8.

src/Command/PHPUnitCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private function resolveBinary(InputInterface $input)
9999
return '';
100100
}
101101

102-
return 'phpdbg -qrr ';
102+
return 'phpdbg -d memory_limit=-1 -qrr ';
103103
}
104104

105105
/**

0 commit comments

Comments
 (0)