Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 2.14 KB

README.md

File metadata and controls

23 lines (15 loc) · 2.14 KB

VIP Go MU Plugins

Every commit which is merged to the master branch of this repository is automattically pushed to the public copy at Automattic/vip-mu-plugins-public. There are exceptions which are not deployed, these are controlled by the deploy.sh script.

Tests

PHP Linting and PHP Unit tests are run by Travis, see the script section of .travis.yml. Test results are reported in the #vip-platform Slack channel.

For notes on running tests locally, see README-PUBLIC.md.

Deployment

When the tests have been successfully run, the deploy.sh script deploys a build of this repository and it's submodules to the public repository at Automattic/vip-mu-plugins-public.

Deployment process:

  1. The private part of a deploy key for Automattic/vip-mu-plugins-public is encrypted against this repository (Automattic/vip-mu-plugins-public), meaning it can only be decrypted by Travis running scripts related to this repo
  2. This repository and it's submodules are checked out, again, to start the build
  3. All VCS config and metadata is removed from the build
  4. Various files are removed, including the .travis.yml containing the encrypted private part of the deploy key
  5. The Automattic/vip-mu-plugins-public repo is checked out
  6. The .git directory from the Automattic/vip-mu-plugins-public repository is moved into the build directory, and a commit is created representing the changes from this build
  7. The commit is pushed to the Automattic/vip-mu-plugins-public repository