Skip to content

Instantly share code, notes, and snippets.

View agentrickard's full-sized avatar

Ken Rickard agentrickard

View GitHub Profile
#!/bin/bash
# be in the right directory
cd /Applications/MAMP/htdocs/domain8/core/scripts
tests=$1
class=$2
# pass any second var to disable verbosity
# run dt --clean to clean up
# run a specific class with dt domain Drupal\\domain\\Tests\\DomainInactiveTest
<?php
/**
* @file
* Additions to contact form handling.
*/
use Drupal\Core\Render\Element;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
#!/bin/bash
#####
# Copy to yopur home directory or web root and make executable.
#
# Run all tests for a module:
# > ./test.sh [name_of_module]
#
# Run a specific test class.
# > ./test.sh node Drupal\\Tests\\node\\Functional\\NodeAccessLanguageFallbackTest
#!/bin/bash
#######
# This script assumes that you have composer and drush installed.
# Be sure to change the directory location and database credentials below.
#
# Place this file in your home directory or web root. Make it executable.
# To run, open Terminal and:
# > cd ~
# > ./drupal8.sh
@agentrickard
agentrickard / gist:27b83d78109565ae1a16
Created August 16, 2014 18:29
Sampe Drupal 8 build script
#!/bin/bash
# be in the right directory
# edit this line as appropriate
cd /Applications/MAMP/htdocs
# assign the path to drush.
# if drush is not in your path, or if you use multiple versions.
drush='/Applications/MAMP/drush/drush'