Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Automatically run tests against maximum supported piwik version #21

Merged
merged 2 commits into from
Jan 27, 2016
Merged

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jan 12, 2016

refs matomo-org/matomo#8695

Tested it here

Made it in a way that it should be backwards compatible and in a way that it is still possible to specify a specific Piwik target version instead of automatically using the maximum supported Piwik version from plugin.json.

Also see comment in matomo-org/matomo#8695 (comment)

$comparison = $required['comparison'];
$version = $required['version'];

if (in_array($comparison, array('>=','>', '=='))) {
Copy link
Member Author

Choose a reason for hiding this comment

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

So far we only consider a few comparisons and not all ('<>', '!=', '<', '<=') as it otherwise gets quickly very complicated. In the past we've never considered any of these so it shouldn't be a problem for now.

@mattab
Copy link
Member

mattab commented Jan 27, 2016

@tsteur where should we document this behavior? Maybe in http://developer.piwik.org/guides/tests-travis ?

mattab pushed a commit that referenced this pull request Jan 27, 2016
Automatically run tests against maximum supported piwik version
@mattab mattab merged commit 17035af into master Jan 27, 2016
@mattab mattab deleted the 8695 branch January 27, 2016 01:52
@tsteur
Copy link
Member Author

tsteur commented Jan 27, 2016

@innocraft-automation innocraft-automation removed this from the Current sprint milestone Jan 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants