3 unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
4 # This will install the latest available package on el and deb based
5 # systems fail on windows and osx, and install via gem on other *nixes
6 foss_opts = { :default_action => 'gem_install' }
8 if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end
12 on hosts, "mkdir -p #{hosts.first['distmoduledir']}"
15 # We ask the host to interpolate it's distmoduledir because we don't
16 # actually know it on Windows until we've let it redirect us (depending
17 # on whether we're running as a 32/64 bit process on 32/64 bit Windows
18 moduledir = on(host, "echo #{host['distmoduledir']}").stdout.chomp
19 on host, "mkdir -p #{moduledir}"
23 RSpec.configure do |c|
25 proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
27 # Readable test descriptions
28 c.formatter = :documentation
30 # Configure all nodes in nodeset
33 # ensure test dependencies are available on all hosts
35 copy_module_to(host, :source => proj_root, :module_name => 'vcsrepo')
36 case fact_on(host, 'osfamily')
38 install_package(host, 'git')
40 install_package(host, 'git-core')
42 if !check_for_package(host, 'git')
43 puts "Git package is required for this module"
47 on host, 'git config --global user.email "root@localhost"'
48 on host, 'git config --global user.name "root"'