Created
February 19, 2015 21:06
-
-
Save grasmash/42373a4352000968b1aa to your computer and use it in GitHub Desktop.
Puppet configuration for Zombie.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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