Skip to content

WordPress Plugin devops with behat, phpunit, travis and docker for developing.

Notifications You must be signed in to change notification settings

awsmug/wp-plugin-devops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Plugin Devops (deprecated/discontinued)

Please use the WP Devops instead of the WordPress Plugins devops.

Setting everything up

Requirements

For this library Composer and Docker is required. Please install before starting.

Install

Add WP Plugin Devops functionality by using Composer.

composer require awsmug/wp-plugin-devops:dev-master

Install the environment by setting up config files for git, composer, phpunit and so on.

vendor/bin/wpdevops install

Start the local server.

vendor/bin/wpdevops start

Stop the local server.

vendor/bin/wpdevops stop

After the changes were made, sync your data to the docker container.

vendor/bin/wpdevops sync

Clean up all automatic produced scripts.

vendor/bin/wpdevops clean

Local Development

Docker container for development

The docker on which the environment is based contains.

  • 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.

phpUnit

Put all your tests to the directory 'tests/phpunit'.

Behat

Put all your .feature files to the directory 'tests/behat' and all your FeatureContext class files to the directory 'tests/behat'.

About

WordPress Plugin devops with behat, phpunit, travis and docker for developing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published