Please use the WP Devops instead of the WordPress Plugins devops.
For this library Composer and Docker is required. Please install before starting.
Add WP Plugin Devops functionality by using Composer.
composer require awsmug/wp-plugin-devops:dev-masterInstall the environment by setting up config files for git, composer, phpunit and so on.
vendor/bin/wpdevops installStart the local server.
vendor/bin/wpdevops startStop the local server.
vendor/bin/wpdevops stopAfter the changes were made, sync your data to the docker container.
vendor/bin/wpdevops syncClean up all automatic produced scripts.
vendor/bin/wpdevops cleanThe docker on which the environment is based contains.
- Nginx webserver
- WordPress
- WP-CLI
- PHP
- phpMyAdmin
- phpUnit
- Behat
You can connect your github account with travis and all your tests will be executed automatically on pushing your code to github.
Put all your tests to the directory 'tests/phpunit'.
Put all your .feature files to the directory 'tests/behat' and all your FeatureContext class files to the directory 'tests/behat'.