Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow build/test hooks to receive environment variables #27

Open
jonpugh opened this issue Jul 7, 2015 · 0 comments
Open

Allow build/test hooks to receive environment variables #27

jonpugh opened this issue Jul 7, 2015 · 0 comments

Comments

@jonpugh
Copy link
Member

jonpugh commented Jul 7, 2015

When running terra's hooks, I want users to be able to simply specificy things like:

hooks:
  build: | 
     drush site-install
  test: |
     cd tests && bin/behat

In order for these to work, we must pass the current URL and/or path to drush or behat, which is environment dependent.

I am currently assuming the hooks would be run on the docker host... perhaps we should switch that to run in the terrra/drush container? The drush container already has URI and ROOT set, so you don't need to specify those.

Now that I've typed this, I'm starting to think all the hooks should be run inside the container...

Thoughts?

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

No branches or pull requests

1 participant