Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Support custom docroot and behat test settings. #45

Open
frankcarey opened this issue Jul 21, 2015 · 2 comments
Open

Support custom docroot and behat test settings. #45

frankcarey opened this issue Jul 21, 2015 · 2 comments

Comments

@frankcarey
Copy link

The site I'm testing this with is a pantheon site. They annoyingly don't allow for docroots other than the repo root. I've fixed this by adding a symlink for docroot that points to the repo root, but this isn't optimal.

$ ln -s ./ docroot

Similarly, my tests are not in /tests/behat like the current setup assumes. It would be nice to just set these settings in the docker-compose.yml

I think these could both be environment settings.

@timodwhit
Copy link

++ Custom docroot, our standard docroot is htdocs.

@lmakarov
Copy link
Owner

A custom docroot path can be set via the DOCROOT env variable on the web container, e.g.

  environment:
    - DOCROOT=/var/www/htdocs

This was around for a while, but is not yet fully supported and tested with some dsh commands ( dsh has docroot hardcoded in a few places)

As for behat - it is now possible to pass the path to behat tests via --path option, e.g.

dsh behat --path=path-to-tests

path-to-tests is relative to the docker-compose.yml file (project root)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants