Skip to content
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
1037-composer
Jun 13, 2016
Merged

Plugins, themes and WordPress installed via Composer#1065
JanVoracek merged 20 commits intomasterfrom
1037-composer

Conversation

@JanVoracek
Copy link
Copy Markdown
Contributor

@JanVoracek JanVoracek commented May 25, 2016

Resolves #1037.

VersionPress now works with Composer!

Highlights of this PR

Tracking chages in composer.json

VersionPress now tracks installation / uninstallation / update of Composer packages using Composer scripts. There are two scripts:

  • pre-update-cmd calls wp vp-composer prepare-for-composer-changes. This command saves list of plugins and themes installed before Composer changes files into transient option.
  • post-update-cmdcalls wp vp-composer commit-composer-changes. This command creates according ChangeInfo objects and does the commit.

Installing correct dependencies after VP actions

VersionPress now calls composer install after:

  • undo / rollback
  • clone
  • push / pull
  • restore-site

Support of Composer-based site in test-config.yml

SiteConfig now contains type to define standard / composer-based site. WpAutomation::runAutomation then installs standard WP site using WP-CLI or Pedestal-based site using composer 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-includes etc.

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)
  • @octopuss

JanVoracek added 19 commits May 18, 2016 10:55
…A developer can choose the type in the `test-config.yml`.
@JanVoracek JanVoracek added this to the 4.0 milestone May 25, 2016
@JanVoracek JanVoracek self-assigned this May 25, 2016
@@ -25,6 +27,46 @@ public function runAutomation()
$wpAutomation->activateVersionPress();
Copy link
Copy Markdown
Contributor

@octopuss octopuss May 27, 2016

Choose a reason for hiding this comment

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

  • Please add link to versionpress/pedestal repository. Users/developers may not be familiar with it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done here.

@JanVoracek JanVoracek merged commit 5c95fac into master Jun 13, 2016
@JanVoracek JanVoracek deleted the 1037-composer branch June 13, 2016 08:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugins, themes and WordPress installed via Composer

3 participants