Hey Jon, I would like to run the phpunit tests from inside my host OS though... > I have pre-commit hook I rely on to run phpunit tests before > submitting... how can I do that now? >
We might be able to get that working by ensuring the includes added by mediawiki-vagrant use relative paths—in fact, after a second look, this should be considered a bug in mediawiki-vagrant. With that usage, however, you won't benefit from any of the automatic provisioning that Vagrant provides; you'll have to ensure you have all the right dependencies set up in your host OS. A workaround that I might suggest trying first would be to make your commits from within the VM, the big downside here being that you'll have to duplicate your user-level git configuration from your host. Another workaround (albeit more complicated) might be to configure your pre-commit hook to execute the tests on the VM over ssh. Let me know if you'd like to try either of the two suggestions, and I can help you out. Meanwhile, I'll see about fixing the include issue. Cheers, Dan On Fri, Jun 13, 2014 at 12:49 PM, Jon Robson <[email protected]> wrote: > Hey Dan, > Yeh that was the problem. > > I would like to run the phpunit tests from inside my host OS though... > I have pre-commit hook I rely on to run phpunit tests before > submitting... how can I do that now? > > On Fri, Jun 13, 2014 at 11:45 AM, Dan Duvall <[email protected]> > wrote: > > Jon, > > > > From the looks of it, you may be invoking the tests from your host OS, > not > > the Vagrant-managed VM. Trying logging in to the VM using `vagrant ssh` > and > > executing the tests from there. > > > > master x ~/git/vagrant $ vagrant ssh > > ... > > vagrant@mediawiki-vagrant:~$ cd /vagrant/mediawiki/tests/phpunit > > vagrant@mediawiki-vagrant:/vagrant/mediawiki/tests/phpunit$ php > > phpunit.php > > > > If you still have problems with it, feel free to come grab me and we can > > troubleshoot it further. > > > > On a related note, I'll be working on improving the mediawiki-vagrant > > browser tests setup for MobileFrontend in the coming weeks. It'd be great > > to have you, or someone else on the mobile team, vet the improvements. > > > > Cheers, > > Dan > > > > -- > > Dan Duvall > > Automation Engineer > > Wikimedia Foundation <http://wikimediafoundation.org> > > _______________________________________________ > > Wikitech-l mailing list > > [email protected] > > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > > > -- > Jon Robson > * http://jonrobson.me.uk > * https://www.facebook.com/jonrobson > * @rakugojon > > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- Dan Duvall Automation Engineer Wikimedia Foundation <http://wikimediafoundation.org> _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
