Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting Makefile To Allow Running Similar To Travis #661

Closed
wants to merge 3 commits into from

Conversation

Fenikkusu
Copy link
Contributor

@Fenikkusu Fenikkusu commented Mar 9, 2019

This PR:

  • Adds new feature ...
  • Covered by tests

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 run PHP_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).

@Fenikkusu Fenikkusu changed the title Adding Helpers To Allow Running Similar To Travis Adjusting Makefile To Allow Running Similar To Travis Mar 9, 2019
@Fenikkusu
Copy link
Contributor Author

Tests Failing Due To #631

@@ -9,6 +9,16 @@ BOX_URL="https://github.com/humbug/box/releases/download/3.1.0/box.phar"
PHP-CS-FIXER_URL="https://cs.sensiolabs.org/download/php-cs-fixer-v2.phar"
PHPSTAN_URL="https://github.com/phpstan/phpstan/releases/download/0.10.3/phpstan.phar"

TEST_TRAVIS_OPTIONS ?= false
ifeq ($(TEST_TRAVIS_OPTIONS),false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to do some if not eq to false, instead of an empty branch and then an else statement?
or even ifeq ($(TEST_TRAVIS_OPTIONS),true) ?

@theofidry
Copy link
Member

Is this still relevant with the recent changes we did regarding the CI configuration and Makefile improvements?

@Fenikkusu
Copy link
Contributor Author

Honestly, I haven't been able to get back to this in quite a while so I'm not sure. I'll just close it for now.

@Fenikkusu Fenikkusu closed this Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants