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

Move to composer based deps #221

Merged
merged 5 commits into from
Sep 26, 2023

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Sep 23, 2023

We are going to keep them updated with composer. Way easier
for a plugin that is going to fade out, now that we have the
phpcs standard into its own (moodle-cs) repo.

Also, raise the min supported PHP version to PHP 7.4
(Moodle 3.8.3 and up), this will enable us to update
code in various places, in this plugin and others.

Once this is approved... it will be released as version 5.0.0 and
Moodle requirements will be raised to 3.8.3 (the very first version
of Moodle supporting PHP 7.4). The 4.x series won't get more
updates.

Installation instructions and thirdpartylibs.xml have been updated to
explain and point to the new places where dependencies are installed.

Note that there is an extra commit (the last one), that is required
because the tests in some dependencies do conflict
with local_codechecker own ones. We will need to apply that
manual removal of tests until this PR is released in moodle-cs:

moodlehq/moodle-cs#69

We are going to keep them updated with composer. Way easier
for a plugin that is going to fade out, now that we have the
phpcs standard into its own (moodle-cs) repo.
Also, raise the min supported PHP version to PHP 7.4
(Moodle 3.8.3 and up), this will enable us to update
code in various places, in this plugin and others.
Describe the new steps needed to update the components (basically
to updating moodle-cs), and update the thirdpartylibs.xml entries
to point to the new location in the vendor directory (that also
makes them to be ignored by codechecker itself).

Special note about the phpcompatibility dev version that we
are using and we'll be able to remove it once we switch to
stable releases.

Update phpunit configuration to avoid any coverage within the vendor dir.
This step will be needed until this PR:

moodlehq/moodle-cs#69

is merged and released. Then we can get rid of it. Note
the reason is that phpunit finds the tests under vendor
and tries to execute them. As far as moodle-cs is now
just a dependency we don't want it to contain any
developing code (ci, tests, docs...) in its distribution form.
@stronk7 stronk7 marked this pull request as ready for review September 24, 2023 10:26
@stronk7
Copy link
Member Author

stronk7 commented Sep 26, 2023

Self merging, so we can test everything in place and apply for some changes in some other tools.

@stronk7 stronk7 merged commit 3a7e2df into moodlehq:master Sep 26, 2023
13 checks passed
@stronk7 stronk7 deleted the move_to_composer_based_deps branch September 26, 2023 12:08
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.

1 participant