drupal_tests icon indicating copy to clipboard operation
drupal_tests copied to clipboard

Unable to use on an install profile

Open davereid opened this issue 4 years ago • 0 comments

We attempted to use drupal_tests with an install profile as its own independent repo, and we've found that everything hard-codes the path to modules/repo-name including:

  • https://github.com/deviantintegral/drupal_tests/blob/master/hooks/RoboFile.php#L101
  • https://github.com/deviantintegral/drupal_tests/blob/master/hooks/RoboFile.php#L193
  • https://github.com/deviantintegral/drupal_tests/blob/master/hooks/RoboFile.php#L270
  • https://github.com/deviantintegral/drupal_tests/blob/master/hooks/behat.sh#L36
  • https://github.com/deviantintegral/drupal_tests/blob/master/hooks/code-sniffer.sh#L13
  • https://github.com/deviantintegral/drupal_tests/blob/master/hooks/code-sniffer.sh#L14
  • https://github.com/deviantintegral/drupal_tests/blob/master/hooks/code-sniffer.sh#L16

We worked around this by adding a symlink from profiles/repo-name to modules/repo-name in our update-dependencies job, which then persisted to the rest of the jobs with the shared workspace. I'm not yet aware of the downsides.

davereid avatar Feb 25 '20 21:02 davereid