Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e15959

Browse files
committed
add test-kitchen 1.0 support
The 1.0 branch of test-kitchen is based on Fletcher Nichol's excellent Jamie CI codebase.
1 parent 87223e2 commit 3e15959

File tree

5 files changed

+75
-0
lines changed

5 files changed

+75
-0
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.vagrant
2+
Berksfile.lock
3+
*~
4+
*#
5+
.#*
6+
\#*#
7+
.*.sw[a-z]
8+
*.un~
9+
/cookbooks
10+
11+
# Bundler
12+
Gemfile.lock
13+
bin/*
14+
.bundle/*
15+
.kitchen/
16+
.kitchen.local.yml

.kitchen.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
driver_plugin: vagrant
3+
platforms:
4+
- name: ubuntu-12.10
5+
driver_config:
6+
box: canonical-ubuntu-12.10
7+
box_url: http://cloud-images.ubuntu.com/vagrant/quantal/current/quantal-server-cloudimg-amd64-vagrant-disk1.box
8+
require_chef_omnibus: 11.4.0
9+
- name: ubuntu-12.04
10+
driver_config:
11+
box: canonical-ubuntu-12.04
12+
box_url: http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box
13+
require_chef_omnibus: 11.4.0
14+
- name: ubuntu-10.04
15+
driver_config:
16+
box: opscode-ubuntu-10.04
17+
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_chef-11.2.0.box
18+
require_chef_omnibus: 11.4.0
19+
- name: centos-5.8
20+
driver_config:
21+
box: opscode-centos-5.8
22+
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-5.8_chef-11.2.0.box
23+
require_chef_omnibus: 11.4.0
24+
- name: centos-6.3
25+
driver_config:
26+
box: opscode-centos-6.3
27+
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.3_chef-11.2.0.box
28+
require_chef_omnibus: 11.4.0
29+
suites:
30+
- name: default
31+
run_list:
32+
- recipe[python]
33+
attributes: {}

Berksfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
site :opscode
2+
3+
metadata
4+
5+
group :integration do
6+
cookbook "apt"
7+
cookbook "yum"
8+
end

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'foodcritic'
4+
gem 'berkshelf'
5+
gem 'thor-foodcritic'
6+
gem 'vagrant', '~> 1.0.6'
7+
8+
group :integration do
9+
gem 'test-kitchen', :git => "git://github.com/opscode/test-kitchen.git", :branch => '1.0'
10+
gem 'kitchen-vagrant', :git => "git://github.com/opscode/kitchen-vagrant.git"
11+
gem 'kitchen-ec2', :git => "git://github.com/opscode/kitchen-ec2.git"
12+
end

Vagrantfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require 'kitchen/vagrant'
2+
require 'berkshelf/vagrant'
3+
4+
Vagrant::Config.run do |config|
5+
Kitchen::Vagrant.define_vms(config)
6+
end

0 commit comments

Comments
 (0)