Automatically deploy your plugin or theme to WordPress.
Github is so popular. Now, use this tool, you can write plugins or themes of wordpress on github, and automatically deployed to wordpress.
1. import your wordpress repository to Github
GitHub Importer will help you import your svn repository to Github
2. add .yml file
copy blow code in .travis.yml file, and put your github repository root dictionary.
language: php
os:
- linux
# deploy master to svn truck
# env: DEPLOYMASTER=1
script:
# - some other code
- git clone https://github.com/litefeel/deploy2wp.git
- sh deploy2wp/scripts/install.sh
after_success:
- deploy2wp/scripts/deploy2wp.sh3. activity travis-ci service
- sign up Travis-ci
- access Travis Profile
- click Sync button to synchronous your repositories
- find your repositories and activit it.
4. set Environment Variables
- access https://travis-ci.org/$own/$repository/settings, please change $own to your github user name and $repository to your repository name.
- add SVN_USERNAME, SVN_PASSWORD, SVN_URL to Environment Variables
- SVN_USERNAME: username of wordpress.org
- SVN_PASSWORD: password of wordpress.org
- SVN_URL: wordpress plugins url, etc http://plugins.svn.wordpress.org/wp-resources-url-optimization
git submodule deinit deploy2wp
git rm deploy2wp
git rm --cached deploy2wp
rm -rf .git/modules/deploy2wp