Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Testing
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2021 at 18:24 UTC
Updated:
17 Apr 2021 at 08:19 UTC
Jump to comment: Most recent
This could be useful. At least it's worth trying out.
https://www.drupal.org/drupalorg/blog/live-deployment-previews-for-drupa...
https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...
https://www.tugboat.qa/drupal-welcome/
https://www.tugboat.qa/2021/03/22/drupal-contrib.html
https://github.com/q0rban/tugboat-drupal
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
Comment #3
jonathan1055 commentedWow, 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.
Comment #4
juampynr commentedGreat work, @jonathan1055! Looks like you are almost there with the Tugboat setup.
Comment #5
jonathan1055 commentedThanks 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 --devI 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.
Comment #7
jonathan1055 commentedDecided 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.
Comment #10
juampynr commentedHi @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.
Comment #11
jonathan1055 commentedThanks @juampynr that's helpful. I will try that next time I need to make changes to the tugboat config file.
Comment #12
jonathan1055 commentedMarking 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