Last modified: 2013-12-02 16:43:29 UTC
My goal next week is to be able to run the VE tests in a mediawiki-vagrant instance. When I added the role, I get puppet errors. Just in case you ran into this, here's the error: notice: /Stage[main]/Browsertests/Exec[install browsertests bundle]/returns: Installing ffi (1.9.0) with native extensions /usr/lib/ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) notice: /Stage[main]/Browsertests/Exec[install browsertests bundle]/returns: notice: /Stage[main]/Browsertests/Exec[install browsertests bundle]/returns: /usr/bin/ruby1.9.1 extconf.rb notice: /Stage[main]/Browsertests/Exec[install browsertests bundle]/returns: Results logged to /home/vagrant/.gem/ruby/1.9.1/gems/ffi-1.9.0/ext/ffi_c/gem_make.out and all that contains is the line /usr/bin/ruby1.9.1 extconf.rb There's an extconf.rb in ~/.gem/ruby/1.9.1/gems/ffi-1.9.0/ext/ffi_c , so I ran that line, it created a Makefile, I ran make, and it built something. But the next time I ran browsertests, it failed again.
I was able to get this working on my MacBook Air with the following workflow (I have not been able to verify that this works on platforms other than Mac OS): 1. vagrant enable-role visualeditor 2. vagrant up 3. vagrant provision 4. vagrant ssh -- -X 5. cd /srv/VisualEditor/VisualEditor/modules/ve-mw/test/browser 6. export MEDIAWIKI_URL=<value> 7. export MEDIAWIKI_USER=<value> 8. export MEDIAWIKI_PASSWORD=<value> 9. export PATH=$PATH:/home/vagrant/.gem/ruby/1.9.1/gems/cucumber-1.3.8/bin 10. bundle exec cucumber <value>
Closing since this looks like it has been fixed to me. Please reopen if needed.