Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron Couch acouch

  • Philadelphia, PA
View GitHub Profile
@iamEAP
iamEAP / nightly_workflow.sh
Last active Nov 3, 2015
Keep Pantheon test environment up-to-date and squeeky clean
View nightly_workflow.sh
#!/bin/bash
PSITE='your-site-name'
PUUID='aaaaaaaa-1111-bbbb-2222-cccccccccccc'
PEMAIL='your-email@example.com'
PPASS='your-password-here--i-know'
# Authenticate with Terminus
drush pauth $PEMAIL --password=$PPASS
@iamEAP
iamEAP / .travis.yml
Last active Jul 25, 2016
Template for integrating Travis-CI and Pantheon Multidev
View .travis.yml
language: php
#
# Important to note, this is the version of PHP used to run this build, not the
# one used to run your Drupal installation. Ensure compatibility with the Drush
# and Terminus versions you're using for this build.
#
php:
- 5.3
@jhedstrom
jhedstrom / FeatureContext.php
Last active Apr 5, 2019
Step-definition for complex node structure (field collection + entity reference).
View FeatureContext.php
<?php
/**
* @Given /^I am viewing a product with the following related products:$/
*/
public function assertRelatedProducts(TableNode $relatedProducts) {
// First, create a product.
$product = (object) array(
'title' => 'Parent Product',
'type' => 'product',
'uid' => 1,