Have script & process to easily update the plugin to non-released versions on our test websites
Context
Expected outcome Provide the QA team with a process + scripts so that, once they cloned the plugin repo on their test website to the targeted commit, they can:
- Generate the ZIP file of the plugin for this targeted commit
- Trigger an update of WordPress plugin from the installed version to the ZIP version that has just been created.
@wordpressfan I assigned you this ticket as it seems you are working on it, based on this Slack thread:
@Mai-Saad
I created a new helper plugin and u find it below:
It's a plugin so plz follow the following steps to make it works:
Build imagify zip file
- Make sure that you have the imagify plugin installed in a directory (called
imagifyorimagify-plugin) beside the directory containing thiscompile.shfile. - Call the
compile.shfile from terminal like
./compile.sh
- This will compile assets and generate final zip file in your current directory, the file called
imagify.zip
Simulate the update process.
- Open the file
imagify-updater/imagify-updater.php - Change the new version constant
IMAGIFY_HELPER_UPDATE_NEW_VERSIONto the new version (this should be larger than the currently installed version) - Change the zip url for the new version (that we generated with the above build process and uploaded to any server to get the direct url)
- Activate the plugin to see the update notice.
- Once finishing update, you can deactivate the helper plugin and you don't need to clear transients here.
Once validated we can add it to our github https://github.com/wp-media/imagify-helpers after validation with @MathieuLamiot
Everything is added here: https://github.com/wp-media/imagify-helpers/tree/master/imagify-updater
@Mai-Saad you can approve this one and move it to Done with your comments (if there are any)