-
Notifications
You must be signed in to change notification settings - Fork 15
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
Tests fail when requiring a non-stable Matomo version in plugin.json #82
Comments
Actually I think, we don't need to adjust anything if we directly merge all changes done to |
@sgiehl the issue will eventually appear though again once I'm also not sure why this check is there in the first place. It doesn't seem helpful. Like once |
Yes, don't know what that check is good for either. Guess we can simply remove it. Also we could maybe improve the default checkout. As we don't use the |
Actually, it was kind of good the tests failed that way as we otherwise wouldn't have noticed the tests aren't running against the right branch. It was supposed to run against |
Closing this one as we meanwhile migrated to GitHub actions. We've applied some improvements around that topic. It also won't fall back to run tests against master there anymore. |
I've tried to require below Matomo version in plugin.json
All automated tests then fail because it ends up using the
master
branch.Looking into the issue I believe this is due to this line https://github.com/matomo-org/travis-scripts/blob/master/matomo_version_parser.php#L31
|| version_compare($version, \Piwik\Version::VERSION) > 0)
.By default, travis will check out the
4.x-dev
branch. But because in https://github.com/matomo-org/matomo/blob/4.x-dev/core/Version.php#L24 the latest version is4.12.0-b
it won't let you use this Matomo version.This must have been a regression from using the
next_release
branch where the version number is4.12.0-rc2
: https://github.com/matomo-org/matomo/blob/next_release/core/Version.php#L24Maybe this check is not actually needed or could be simplified?
As a result, it's currently using
master
branch and then the tests don't run at all as it's a very old version. It should instead check out the correct version.The text was updated successfully, but these errors were encountered: