This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Configurable test steps for fresh installs and live dbs #1004
Labels
Enhancement
A feature or feature request
Currently, TravisCI runs
ci:build:validate:test
, which in turn installs Drupal viaci:setup
and runs tests.On most projects, it's also useful to test live content. In fact, on some projects it's better to not run fresh installs at all, and to only test updates from a synced db (since installs can be flaky and take 10+ minutes to run).
The best way to do this right now is to override the
ci:setup
target in a custom xml import:The problem here is that Drupal/BLT assume that file directories (private/tmp files, etc...) have already been created, i.e. by the Drupal installer. So if you are only testing against live dbs and not installing from scratch, you have to know what those directories are and manually create them:
Obviously this is all a pain. It would be nicer if BLT supported this as a switch or set of hooks in
project.yml
.The main steps to this approach would be to break up the
ci:setup
task (so we can build the platform without installing Drupal), maybe createci:sync
andci:update
targets, figure out how to configure and/or create file directories correctly outside of the installer, and finally add the hooks or switches to project.yml and the necessary Phing tasks.The text was updated successfully, but these errors were encountered: