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

Pass --piwik-domain value to phpunit via environment variable… #12119

Merged
merged 1 commit into from Sep 26, 2017
Merged

Pass --piwik-domain value to phpunit via environment variable… #12119

merged 1 commit into from Sep 26, 2017

Conversation

diosmosis
Copy link
Member

…so correct INI config will be used in tests.

I'm using multiple INI configs to separate different environments (primarily docker vs local). Unfortunately, --piwik-domain option has no effect on tests:run, since that invokes phpunit directly (so the normal config.ini.php file is used).

This PR works around that by passing the piwik domain via environment variable to phpunit, and handling it in bootstrap.php (if it's found).

This change would make development more convenient for me, but it's not life or death. It means if I switch contexts, I don't have to manually change config.ini.php.

@diosmosis diosmosis added the Needs Review PRs that need a code review label Sep 26, 2017
@mattab mattab added this to the 3.2.0 milestone Sep 26, 2017
@mattab mattab merged commit 6d7fbab into matomo-org:3.x-dev Sep 26, 2017
@diosmosis diosmosis deleted the tests-piwik-domain branch September 26, 2017 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants