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

Autodetect minimum php version of plugins by checking plugin.json. #10

Merged
merged 2 commits into from
Oct 20, 2015

Conversation

diosmosis
Copy link
Member

As title, generate:travis-yml will now try to detect the minimum PHP version from plugin.json and if found, test against this instead of 5.3.3.

@mattab Can you do a quick review?


$phpRequirement = $pluginJsonContents['require']['php'];
if (!preg_match('/>=([0-9]+\.[0-9]+\.[0-9]+)/', $phpRequirement, $matches)) {
$this->log("info", "Cannot detect minimum php version from php requirement: '$phpRequirement'");
Copy link
Member

Choose a reason for hiding this comment

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

return null; missing

@mattab mattab added this to the Current sprint milestone Oct 19, 2015
@mattab
Copy link
Member

mattab commented Oct 19, 2015

@diosmosis I left a comment, otherwise looks good. Please merge it + update submodule in piwik/piwik 👍

diosmosis added a commit that referenced this pull request Oct 20, 2015
Autodetect minimum php version of plugins by checking plugin.json when generating .travis.yml files.
@diosmosis diosmosis merged commit 2a41a93 into master Oct 20, 2015
@diosmosis diosmosis deleted the autodetect_min_php branch October 20, 2015 00:04
diosmosis pushed a commit to matomo-org/matomo that referenced this pull request Oct 20, 2015
@innocraft-automation innocraft-automation removed this from the Current sprint milestone Jan 24, 2023
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