Skip to content

Instantly share code, notes, and snippets.

@grasmash
Created February 19, 2015 21:06
Show Gist options
  • Save grasmash/42373a4352000968b1aa to your computer and use it in GitHub Desktop.
Save grasmash/42373a4352000968b1aa to your computer and use it in GitHub Desktop.
Puppet configuration for Zombie.js
#
# Install Zombie.js for Behat javascript testing.
#
exec { 'node-add-repo':
command => 'add-apt-repository ppa:chris-lea/node.js && apt-get update',
unless => 'apt-cache policy | grep chris-lea',
}
package { [ 'nodejs' ]:
require => Exec['node-add-repo'],
ensure => present
}
exec { 'zombie-install':
# Behat 2 requires Zombie <= 1.4.1.
command => 'npm install [email protected] --global',
require => Package['nodejs'],
creates => '/usr/lib/node_modules/zombie'
}
default:
paths:
features: 'features'
extensions:
Behat\MinkExtension\Extension:
default_session: goutte
javascript_session: zombie
zombie:
node_modules_path: /usr/lib/node_modules/
auto_server: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment