This repository was archived by the owner on Jul 28, 2024. It is now read-only.
Plugins, themes and WordPress installed via Composer#1065
Merged
JanVoracek merged 20 commits intomasterfrom Jun 13, 2016
Merged
Plugins, themes and WordPress installed via Composer#1065JanVoracek merged 20 commits intomasterfrom
JanVoracek merged 20 commits intomasterfrom
Conversation
…ing composer changes
…existing-directory/../wp-config.php`)
…A developer can choose the type in the `test-config.yml`.
| @@ -25,6 +27,46 @@ public function runAutomation() | |||
| $wpAutomation->activateVersionPress(); | |||
Contributor
There was a problem hiding this comment.
- Please add link to
versionpress/pedestalrepository. Users/developers may not be familiar with it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1037.
VersionPress now works with Composer!
Highlights of this PR
Tracking chages in
composer.jsonVersionPress now tracks installation / uninstallation / update of Composer packages using Composer scripts. There are two scripts:
pre-update-cmdcallswp vp-composer prepare-for-composer-changes. This command saves list of plugins and themes installed before Composer changes files into transient option.post-update-cmdcallswp vp-composer commit-composer-changes. This command creates accordingChangeInfoobjects and does the commit.Installing correct dependencies after VP actions
VersionPress now calls
composer installafter:Support of Composer-based site in
test-config.ymlSiteConfignow containstypeto define standard / composer-based site.WpAutomation::runAutomationthen installs standard WP site using WP-CLI or Pedestal-based site usingcomposer create-project.Several fixes in tests
It was necessary to adjust the tests to work with this different approach. For example, there were often hardcoded paths like
wp-content/vpdb,wp-includesetc.Reviewers:
@borekb(I didn't have time to review it properly and @JanVoracek needed this PR merged so we've merged it; I'll look at it later)