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

Switch to extension registration mechanism #39

Merged
merged 12 commits into from Jan 26, 2019
Merged

Switch to extension registration mechanism #39

merged 12 commits into from Jan 26, 2019

Conversation

kghbln
Copy link
Member

@kghbln kghbln commented Jan 25, 2019

This PR is made in reference to: #38

This PR addresses or contains:

This PR includes:

  • Tests (unit/integration)
  • CI build passed

Fixes: #38

@kghbln kghbln requested a review from mwjames January 25, 2019 23:26
@kghbln
Copy link
Member Author

kghbln commented Jan 25, 2019

@mwjames Let's see what happens. I basically imitated what was done for SRF. If something is borked it will most probably be originating from the changes to the "SemanticCompoundQueries.php" file.

This explains Notice: Use of undefined constant SCQ_VERSION - assumed 'SCQ_VERSION' in /home/travis/build/SemanticMediaWiki/mw/extensions/SemanticCompoundQueries/tests/bootstrap.php on line 11
@kghbln
Copy link
Member Author

kghbln commented Jan 26, 2019

@mwjames It took me a while to add a sensible set of test environments but I guess we are cool now. Since all tests passed a squash and merge should be possible. :)

@kghbln
Copy link
Member Author

kghbln commented Jan 26, 2019

@mwjames As always, thanks a ton!

- env: DB=postgres; MW=REL1_30; SMW=~3.0@dev
php: 7.2
allow_failures:
- env: DB=mysql; MW=master; SMW=~3.1@dev

Copy link
Member Author

Choose a reason for hiding this comment

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

@mwjames Will it make sense to add PHPUnit to these lines like e.g. in SMT? For a lot of extensions we do not add e.g. SMW=~3.1@dev. I am unsure when to use it and when not. I guess this is to be able to specify a distinct branch and if we do not master of SMW is used? I this case SMW could probably be dropped from the lines

Copy link
Contributor

@mwjames mwjames Jan 26, 2019

Choose a reason for hiding this comment

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

PHPUnit depends on the required PHP version. MW 1.31 comes with a required PHPUnit version which should work with PHP 7.0 but in some cases MW lacks behind and PHP 7.2/7.3 requires a more recent version of PHPUnit.

So, it all depends, and in some cases you get in discussions with WMF about it [0].

[0] https://phabricator.wikimedia.org/T204420

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, I remember this one. I just mixed in permissible PHPUnits. Still not sure about the SMW part ...

@mwjames mwjames merged commit 88ccec7 into master Jan 26, 2019
@mwjames mwjames deleted the issue-38 branch January 26, 2019 19:28
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

2 participants