mark-schaal / drude-d8-testing

Drude Drupal 8 Testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drude powered Drupal 8 Installation

This is a sample vanilla Drupal 8 installation preconfigured for use with Drude.

Instructions (Mac, Windows, Linux)

On Windows you will need a Linux-type shell. Install Babun before proceeding and run all commands in it.
Instructions were not tested with other shells on Windows.

  1. Install dsh (Drude Shell)

    sudo curl -L https://raw.githubusercontent.com/blinkreaction/drude/master/bin/dsh  -o /usr/local/bin/dsh
    sudo chmod +x /usr/local/bin/dsh
    
  2. Create the <Projects> directory

    E.g. ~/Projects on Mac and Linux, c:\Projects on Windows

    mkdir Projects
    cd Projects
    
  3. Install Drude's prerequisites

    All operating systems: docker, docker-compose
    Mac and Windows additionally: virtualbox, vagrant, boot2docker-vagrant

    dsh install prerequisites
    dsh install boot2docker
    
  4. Clone this repo into the Projects directory

    git clone https://github.com/blinkreaction/drude-d8-testing.git
    cd drude-d8-testing
    
  5. Initialize the site

    This will initialize local settings and install the site via drush

    dsh init
    
  6. On Windows add 192.168.10.10 drupal8.drude to your hosts file

  7. Point your browser to

    http://drupal8.drude
    

Automation with 'dsh init'

Site provisioning can be automated using dsh init, which calls script .drude/commands/init.
This script is meant to be modified per project. The one in this repo will give you a good example of advanced init script.

Some common tasks that can be handled by the init script:

  • initialize local settings files for Docker Compose, Drupal, Behat, etc.
  • import DB or perform a site install
  • compile Sass
  • run DB updates, revert features, clear caches, etc.
  • enable/disable modules, update variables values
  • run Behat tests

About

Drude Drupal 8 Testing


Languages

Language:PHP 94.1%Language:JavaScript 2.8%Language:HTML 1.6%Language:CSS 1.4%Language:Shell 0.2%Language:ApacheConf 0.0%