This could be useful. At least it's worth trying out.

Live deployment previews

https://www.drupal.org/drupalorg/blog/live-deployment-previews-for-drupa...

Using live previews on Drupal Core and contrib merge requests

https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...

Tugboat welcomes Drupal.org developers

https://www.tugboat.qa/drupal-welcome/
https://www.tugboat.qa/2021/03/22/drupal-contrib.html

q0rban / tugboat-drupal

https://github.com/q0rban/tugboat-drupal

tugboat documentation

https://docs.tugboat.qa/

Issue fork scheduler-3206654

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jonathan1055 created an issue. See original summary.

jonathan1055’s picture

Issue summary: View changes
Status: Active » Needs review

Wow, that worked first time :-)
Now I need to work out how to install Devel Generate, so that the test site can generate some users and content.

juampynr’s picture

Great work, @jonathan1055! Looks like you are almost there with the Tugboat setup.

jonathan1055’s picture

Issue summary: View changes

Thanks juampynr. I'm really impressed with Tugboat so far. Great work by you and @drumm, thank you. I did not know anything about it, but I'd subscribed to the doc page /creating-issue-forks-and-merge-requests so was alerted to the new functionality when that page was updated.

One problem I had was that in the composer command to get the module composer require drupal/scheduler:dev-$TUGBOAT_REPO_ID --dev I added --dev in the hope that the 'require-dev' list of extras for Scheduler would also get loaded, but they were not. Maybe I have mis-understood the use of --dev in the composer require command. I ended up adding a require for devel directly. Or maybe the composer.json is not quite right.

I've got a few more additions to make, using drush to create roles with permissions for Scheduler, then to place the 'Switch users' block, to help people test with different users. Thanks again for a great addition to the test framework, and to help lower the barrier of entry for people who want to help test contrib. I am working on a big new functionality addition in #2096585: Support for non-node entities, e.g. Media, Commerce Products, Custom 3rd-party entities so this live preview will really help with that.

  • jonathan1055 committed ec13fe0 on 8.x-1.x
    Issue #3206654 by jonathan1055: Create live preview via TugboatQA
    
jonathan1055’s picture

Decided to commit what I've done so far, so that other issues can use it. Will need further additions, specifically how to place the 'switch users' block, for which there is no built-in drush command. It was available in Drush Extras but that has not been ported to D8 yet.

juampynr’s picture

Hi @jonathan1055,

Thanks, glad to hear that this is helpful for you.

As per https://getcomposer.org/doc/03-cli.md#require, using --dev in a require statement adds the required dependency (in this case scheduler) to the require-dev section of the composer.json. I could not find a way to tell Composer "hey, add this dependency plus its dev dependencies". It seems thought that if you run composer install after the above require that will bring devel too though.

jonathan1055’s picture

Thanks @juampynr that's helpful. I will try that next time I need to make changes to the tugboat config file.

jonathan1055’s picture

Status: Needs review » Fixed

Marking this as 'fixed' now that this is committed in 8.x-1.x. There are plenty of changes to the tugboat config file over in #2096585: Support for non-node entities, e.g. Media, Commerce Products, Custom 3rd-party entities

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.