If you have a database of WordPress URLs that need to be redirected in Drupal 7.
- Install
Redirectmodule. - Install
path_redirect_importmodule.
| #!/usr/bin/env sh | |
| brew update | |
| brew install rbenv | |
| brew install ruby-build | |
| brew install openssl | |
| RUBY_CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` | |
| rbenv install 2.0.0-preview1 |
| <?php | |
| // Assumes date field is $variables['field_event_date'] | |
| $dateObj = new DateObject($variables['field_event_date'][0]['value'], new DateTimeZone($variables['field_event_date'][0]['timezone_db'])); | |
| $dateObj->setTimezone(new DateTimeZone($variables['field_event_date'][0]['timezone'])); | |
| $date = $dateObj->getTimestamp(); |
| // Special handling for entity references. | |
| elseif ('entityreference' === $info['module']) { | |
| $values = explode(',', $value); | |
| // Handle taxonomy terms. | |
| // @todo generalize. | |
| if ($info['settings']['target_type'] == 'taxonomy_term') { | |
| $i = 0; | |
| foreach ($values as $tid) { | |
| $new_entity->{$param}[LANGUAGE_NONE][$i]['target_id'] = $tid; |
Xvfb -fp /usr/share/fonts/X11/misc/ :99 -screen 0 1024x768x16 >/dev/null &
export DISPLAY=:99
nohup java -Djava.security.egd=file:/dev/./urandom -jar /var/lib/selenium/selenium-server-standalone-2.43.1.jar >/dev/null &
service jenkins start
Only when you first install: Edit the /etc/mysql/my.cnf file to have the proper bind address See http://unix.stackexchange.com/questions/32766/xvfb-or-firefox-throwing-errors-gratuitously-logging if Selenium is being chatty
| <?php | |
| // Load the matchMedia polyfill. | |
| if (module_exists('picture') && drupal_get_library('picture', 'matchmedia')) { | |
| $options = array('group' => 'globalgamejam_theme'); | |
| // Load the mediaquery behavior from Omega. This allows registering media | |
| // queries via Drupal.settings to automatically print body classes based on | |
| // whether or not they currently apply. | |
| $omega = drupal_get_path('theme', 'omega'); |
(1) Create a tests folder. Perform the following install tasks within that folder unless otherwise specified.
(2) Follow directions to install the Behat Drupal extension.
(3) Add the following lines to the main repo .gitignore:
# Ignore behat files that can be easily initialized
tests/bin