imagify-plugin icon indicating copy to clipboard operation
imagify-plugin copied to clipboard

Have script & process to easily update the plugin to non-released versions on our test websites

Open MathieuLamiot opened this issue 2 years ago • 3 comments

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.

MathieuLamiot avatar Nov 21 '23 16:11 MathieuLamiot

@wordpressfan I assigned you this ticket as it seems you are working on it, based on this Slack thread:

MathieuLamiot avatar Nov 27 '23 14:11 MathieuLamiot

@Mai-Saad

I created a new helper plugin and u find it below:

imagify-updater.zip

It's a plugin so plz follow the following steps to make it works:

Build imagify zip file

  1. Make sure that you have the imagify plugin installed in a directory (called imagify or imagify-plugin) beside the directory containing this compile.sh file.
  2. Call the compile.sh file from terminal like
./compile.sh
  1. This will compile assets and generate final zip file in your current directory, the file called imagify.zip

Simulate the update process.

  1. Open the file imagify-updater/imagify-updater.php
  2. Change the new version constant IMAGIFY_HELPER_UPDATE_NEW_VERSION to the new version (this should be larger than the currently installed version)
  3. 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)
  4. Activate the plugin to see the update notice.
  5. 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

wordpressfan avatar Dec 05 '23 09:12 wordpressfan

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)

wordpressfan avatar Dec 07 '23 10:12 wordpressfan