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

Cache behat in .moodle-sdk #63

Open
andrewnicols opened this issue Nov 5, 2013 · 3 comments
Open

Cache behat in .moodle-sdk #63

andrewnicols opened this issue Nov 5, 2013 · 3 comments

Comments

@andrewnicols
Copy link
Contributor

I run a lot of feature instances when I'm working on a particular issue. I also run instances for {i,s{m,25,24}} so at any one time I have at least 6 instances and generally about double that.

When I want to run behat, on one or all of these and it's out of date, I have to update behat for each instance which takes yonks.

Can we cache the latest version of the vendor directory perhaps and rsync each module in place before a run (should be pretty fast)?

@FMCorz
Copy link
Owner

FMCorz commented Nov 5, 2013

The only problem with rsyncing the vendor directory is that you still need to make sure it has the right version according to composer.json. I think it's much safer to re-do it on each install. Beside once it's done it doesn't need to be done any more. The other thing is that the vendor directory contains other things than behat stuff.

@andrewnicols
Copy link
Contributor Author

It's okay - we can use the built-in composer functionality: http://getcomposer.org/doc/03-cli.md#composer-cache-dir

@FMCorz
Copy link
Owner

FMCorz commented Apr 9, 2014

Strangely it seems to be using a cache by default.

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

No branches or pull requests

2 participants