-
Notifications
You must be signed in to change notification settings - Fork 36
/
.kitchen.yml
80 lines (70 loc) · 2.1 KB
/
.kitchen.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<%
provisioner = ENV['KITCHEN_PROVISIONER'] || 'chef_zero'
omnibus_version = ENV['KITCHEN_OMNIBUS_VER'] || 'true'
driver = ENV['KITCHEN_DRIVER'] || 'vagrant'
%>
---
driver:
name: <%= driver %>
<% if driver == 'digitalocean' %>
driver_config:
digitalocean_client_id: <%= ENV['DIGITALOCEAN_CLIENT_ID'] %>
digitalocean_api_key: <%= ENV['DIGITALOCEAN_API_KEY'] %>
region_id: <%= ENV['DIGITALOCEAN_REGION_ID'] || '1' %>
ssh_key_ids: <%= ENV['DIGITALOCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITALOCEAN_SSH_KEY'] %>
flavor_id: 66
<% end %>
provisioner:
name: <%= provisioner %>
require_chef_omnibus: <%= omnibus_version %>
platforms:
- name: ubuntu-12.04
driver_config:
<% if driver == 'vagrant' %>
box: opscode-ubuntu-12.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
<% elsif driver == 'digitalocean' %>
image_id: 284203
<% elsif driver == 'docker' %>
image: ubuntu:12.04
<% end %>
- name: centos-6
driver_config:
<% if driver == 'vagrant' %>
box: opscode-centos-6.4
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box
<% elsif driver == 'digitalocean' %>
image_id: 562354
<% elsif driver == 'docker' %>
image: centos:6.6
<% end %>
suites:
- name: default
run_list:
- recipe[minitest-handler]
- recipe[minitest-handler_test1]
- recipe[minitest-handler_test1::not_default]
- recipe[minitest-handler_test1::wrong_dir]
- recipe[minitest-handler_test1::gh67]
- name: legacy_paths
run_list:
- recipe[minitest-handler]
- recipe[minitest-handler_test2::legacy_paths]
attributes:
minitest:
recipes: [ "minitest-handler_test2::legacy_paths" ]
- name: include_recipe
run_list:
- recipe[minitest-handler]
- recipe[minitest-handler_test2]
# This suite is used to excercise that when a filter
# is set it used properly
- name: filter_applied
run_list:
- recipe[minitest-handler]
- recipe[minitest-handler_test1]
- recipe[minitest-handler_test2]
attributes:
minitest:
filter: /minitest-handler_test1/