WordPress Plugin Devops (deprecated/discontinued)
Please use the WP Devops instead of the WordPress Plugins devops., (*1)
Setting everything up
Requirements
For this library Composer and Docker is required. Please install before starting., (*2)
Install
Add WP Plugin Devops functionality by using Composer., (*3)
composer require awsmug/wp-plugin-devops:dev-master
Install the environment by setting up config files for git, composer, phpunit and so on., (*4)
vendor/bin/wpdevops install
Start the local server., (*5)
vendor/bin/wpdevops start
Stop the local server., (*6)
vendor/bin/wpdevops stop
After the changes were made, sync your data to the docker container., (*7)
vendor/bin/wpdevops sync
Clean up all automatic produced scripts., (*8)
vendor/bin/wpdevops clean
Local Development
Docker container for development
The docker on which the environment is based contains., (*9)
- Nginx webserver
- WordPress
- WP-CLI
- PHP
- phpMyAdmin
- phpUnit
- Behat
Testing
Travis
You can connect your github account with travis and all your tests will be executed automatically on pushing your code to github., (*10)
phpUnit
Put all your tests to the directory 'tests/phpunit'., (*11)
Behat
Put all your .feature files to the directory 'tests/behat' and all your FeatureContext class files to the directory 'tests/behat'., (*12)