Deployment tools for WordPress plugins and themes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

WP Shuttle Logo

WP Shuttle for Automatic Plugin Deployments

Getting Started

  1. Add wpsh/wpsh as a developer dependency to your project:

     $ npm install --save-dev wpsh/wpsh

    Run npm init if your project is missing the package.json file.

  2. Add wpsh to the scripts section of the package.json file:

     "scripts": {
       "wpsh": "wpsh"
  3. Use npm run wpsh to run the WP Shuttle script.

To run it as wpsh instead of npm run wpsh you should add path to the local npm bin folder to the $PATH environment variable by appending the following to ~/.bashrc or ~/.zshrc:

export PATH="./node_modules/.bin:$PATH"

and restart the shell to trigger the change.

Automatic Deployments with Travis CI

  1. Update the Travis CI config .travis.yml to deploy your plugin when committing to master and tagging a release:

       - provider: script
         script: npm run wpsh $TRAVIS_TAG
           tags: true
       - provider: script
         script: npm run wpsh trunk
           branch: master
  2. Specify the following environment variables in the Travis CI repository settings for deploying to the WordPress plugin SVN repository:

  3. Use .svnignore to exclude files and folders from the deployment.