Skip to content

Latest commit

 

History

History

Scripts for a more pleasant and also faster development

These scripts support the development and testing of WordPress plugin Random Quote from Zitat-Service (see ../README.md).

The scripts are used on the Mac command line or in the container, but should also work on Linux and the Windows subsystem for Linux.

Script Description Additional Info
scripts/install.sh Inside WordPress containers install WP-CLI, complete the WordPress installation, install additional languages and admin users and activate the plugin. - first argument is the container name quote_wp_wordpress or quote_wp_min, otherwise it will be installed in both containers
- must be executed first and only once
scripts/test.sh Run E2E tests in Playwright container. - first argument is the container name quote_wp_wordpress or quote_wp_min, otherwise it will be tested in both containers
- see ../test
scripts/pack.sh Create the plugin ZIP file. - with optional argument full doing all the deployment steps
scripts/compose.sh Delete the five Docker containers and build them new. - with optional argument build the WordPress containers are rebuild without cache
scripts/clean.sh Removes all quote_wp_* Docker containers.
scripts/deleteAllPosts.sh Testing creates posts, this script simply deletes all posts. - ⚠️ ALL posts are deleted
- first argument is the container name quote_wp_wordpress or quote_wp_min, otherwise posts will be deleted in both containers
scripts/i18n-init.sh Create the portable object template .pot file and four portable object files. - ⚠️ the .pot and the four .po files are overwritten
- see ../languages
scripts/i18n-create.sh Create 20 .mo and 20 .json files from the 4 .po files. - intended to be run in quote_wp_wordpress container, see ../languages
scripts/svn.sh Create the SVN checkout directory and update from assets/ and ZIP

And now you are ready to quintuple the speed 😃 Create the six Docker containers, install WordPress and the plugin twice and running the E2E tests twice. All with just one command line:

scripts/compose.sh && scripts/install.sh && scripts/test.sh