-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.kitchen.yml
More file actions
59 lines (51 loc) · 1.04 KB
/
.kitchen.yml
File metadata and controls
59 lines (51 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<% def digitalocean_driver
@text = <<EOT
---
driver:
name: digitalocean
region: sfo1
size: 512mb
EOT
@text += " ssh_key: #{ENV['DIGITALOCEAN_SSH_KEY_PATH']}" unless ENV['DIGITALOCEAN_SSH_KEY_PATH'].nil?
@text += <<EOT
provisioner:
name: chef_zero
platforms:
- name: debian-7-0-x64
suites:
- name: default
run_list:
- recipe[bashd-test-helper::default]
attributes:
EOT
end %>
<% def vagrant_driver
@text = <<EOT
---
driver_plugin: vagrant
platforms:
- name: debian-7.4
driver:
provider: virtualbox
customize:
memory: 512
suites:
- name: default
run_list:
- recipe[bashd-test-helper::default]
attributes:
EOT
end %>
<%
case ENV['TEST_KITCHEN_DRIVER']
when 'digitalocean'
puts 'Using DigitalOcean test-kitchen driver'
_erbout << digitalocean_driver
when 'vagrant'
puts 'Using Vagrant test-kitchen driver'
_erbout << vagrant_driver
else
puts "Unknown test-kitchen driver \'#{ENV['TEST_KITCHEN_DRIVER']}\', using Vagrant test-kitchen driver"
_erbout << vagrant_driver
end
%>