Adjusting Makefile To Allow Running Similar To Travis #661
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR:
While working on another MR, I was getting errors in travis and couldn't figure out the issues. Once I realized it was because of extra parameters used to run in travis, I wanted to replicate them locally so I wouldn't have to fix/push/fix/push etc, as well as get an output of the issues.
This PR adds additional options to the Makefile to allow simple access to travis mode. By running
TEST_TRAVIS_OPTIONS=true make test
(Or another other run command), make will automatically append additional options that are pretty much the same as travis would run. I also added in the PHP_OPTIONS flag to pass options to php when running. For example, I kept getting a few memory limit issues, so I can now runPHP_OPTIONS="-d memory_limit=-1" make test
(Yes, I know about the infection config option as well, but this came in hand for other items too).