Giter Site home page Giter Site logo

alnutile / behat-vagrant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from appnosteev/behat-vagrant

4.0 2.0 2.0 450 KB

Installs a complete preconfigured environment to use the behat_editor, behat_editor_saucelabs and behat_editor_github modules

License: GNU General Public License v2.0

Ruby 89.01% PHP 10.38% Shell 0.15% Perl 0.46%

behat-vagrant's Introduction

VirtualBox Vagrant Chef Drupal Behat Editor install

Google doc of install here

Youtube video of install here

Installs a complete preconfigured environment to use the behat_editor, behat_editor_saucelabs and behat_editor_github modules

Based on drupal.org/project/vagrant

Maintained by [email protected] original branch supported by [email protected]


HOW TO INSTALL

There is a video here as well

  1. Download and Install VirtualBox (ensure you are on the latest version 4.0.8+)
  2. Install vagrant
  3. Download or Clone this project go to the folder and launch the box:

cd [vagrant project directory];

vagrant up

  1. Add this line to your /etc/hosts (or windows equivalent):

    33.33.33.10 drupal.vbox.local dev-site.vbox.local

This will install and configure the behat_editor and associated modules at : http://drupal.vbox.local/

Username: admin

Password: admin

To connect to the console of you instance: vagrant ssh


HOW TO TEST

There is a video here as well

  • Navigate to /admin/behat/add
  • Follow the link to add your saucelabs credentials
  • Load the wikipedia sample test
  • Run the test on saucelabs
  • You should see the test complete and be able to view the video in the browser

SAUCELABS

The behat_editor_saucelabs module is enabled and must be configured here before use: http://drupal.vbox.local/admin/


SELENIUM

  • The vagrant build will download the selenium server but will not configure or start it automatically.
  • To start the server:

vagrant ssh

cd /vagrant

java -jar selenium-server-standalone-2.31.0.jar

  • TODO instructions to use selenium server

REBUILD

To rebuild the software and OS (keeping the vm intact)

/usr/bin/mysql -u root -proot -e \"DROP DATABASE drupal;\"

sudo rm -rf public;vagrant provision

To rebuild from scratch change to the install directory and do:

vagrant destroy -f

sudo rm -rf public

vagrant up

(you will be prompted for your password for nfs setup. Do this, THEN grab some coffee)


ISSUES

Composer manager requires input Sometimes the composer manager update fails as it requires manual intervention. The symptoms of this are modules not working as expected and class/wrapper not found errors. We are working on this fix workaround: First try:

vagrant ssh

cd /vagrant/public/drupal.vbox.local/docroot/

drush composer-manager update

if that doesnt work then try:

vagrant ssh

cd /vagrant/public/drupal.vbox.local/docroot/sites/default/files/composer

php composer.phar update

  • You will likely see a prompt to update a module from git or some files have changed somewhere.
  • TODO This can likely be fixed with a silent flag for the most part.

Fatal error: Class 'Drupal\BehatEditor\FileController' not found in /vagrant/public/drupal.vbox.local/docroot/sites/all/ This means the composer manager failed somewhere. I have seen this where github has asked for credentials duing the update and the script wasn't completed. To fix do this

vagrant ssh

cd /vagrant/public/drupal.vbox.local/docroot/

drush composer-manager update


You can add XDEBUG_PROFILE to your GET parameter to generate an xdebug profile, e.g. http://dev-site.vbox.local/?XDEBUG_PROFILE

You can then investigate at http://dev-site.vbox.local/webgrind/

Phpmyadmin is available http://dev-site.vbox.local/phpmyadmin/. User myadmin, Password myadmin

behat-vagrant's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

frederickjh eniuz

behat-vagrant's Issues

Clear defaults/workflow

right now composer complains the lock file is out of sync
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

composer --working-dir=/vagrant/public/drupal.vbox.local/docroot/sites/default/files/composer install

So I need to make sure the drush composer-rebuild-file and or drush composer-json-rebuild work this out

or force it by removing the lock file first

link composer to /usr/bin

right now it is in /vagrant/public/drupal.vbox.local/docroot/sites/default/files/composer/composer.phar

Saucelabs library

maybe due to #7 but this was not setup on the last install so I had to enable and disable the module and run drush rr -y

configure-composer-module errors on install

hi

I am getting errors on install

I tried the troubleshooting in the readme

very promising project btw !

Error executing action run on resource 'bash[configure-composer-module]'

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20140426-1281-vsrepu-0" ----
STDOUT: The following extensions will be enabled: composer_manager
Do you really want to continue? (y/n): y
One or more extensions have dependencies managed by Composer.
Update packages managed by Composer? (y/n): y
The composer.json file is missing. Would you like to re-build it? (y/n): y
Download and install Composer? (y/n): y

!/usr/bin/env php

All settings correct for using Composer
Downloading...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.