Skip to content

Commit

Permalink
add test-kitchen 1.0 support
Browse files Browse the repository at this point in the history
The 1.0 branch of test-kitchen is based on Fletcher Nichol's excellent
Jamie CI codebase.
  • Loading branch information
schisamo committed Feb 25, 2013
1 parent 87223e2 commit 3e15959
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.vagrant
Berksfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
/cookbooks

# Bundler
Gemfile.lock
bin/*
.bundle/*
.kitchen/
.kitchen.local.yml
33 changes: 33 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
driver_plugin: vagrant
platforms:
- name: ubuntu-12.10
driver_config:
box: canonical-ubuntu-12.10
box_url: http://cloud-images.ubuntu.com/vagrant/quantal/current/quantal-server-cloudimg-amd64-vagrant-disk1.box
require_chef_omnibus: 11.4.0
- name: ubuntu-12.04
driver_config:
box: canonical-ubuntu-12.04
box_url: http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box
require_chef_omnibus: 11.4.0
- name: ubuntu-10.04
driver_config:
box: opscode-ubuntu-10.04
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_chef-11.2.0.box
require_chef_omnibus: 11.4.0
- name: centos-5.8
driver_config:
box: opscode-centos-5.8
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-5.8_chef-11.2.0.box
require_chef_omnibus: 11.4.0
- name: centos-6.3
driver_config:
box: opscode-centos-6.3
box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.3_chef-11.2.0.box
require_chef_omnibus: 11.4.0
suites:
- name: default
run_list:
- recipe[python]
attributes: {}
8 changes: 8 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
site :opscode

metadata

group :integration do
cookbook "apt"
cookbook "yum"
end
12 changes: 12 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
source 'https://rubygems.org'

gem 'foodcritic'
gem 'berkshelf'
gem 'thor-foodcritic'
gem 'vagrant', '~> 1.0.6'

group :integration do
gem 'test-kitchen', :git => "git://github.com/opscode/test-kitchen.git", :branch => '1.0'
gem 'kitchen-vagrant', :git => "git://github.com/opscode/kitchen-vagrant.git"
gem 'kitchen-ec2', :git => "git://github.com/opscode/kitchen-ec2.git"
end
6 changes: 6 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'kitchen/vagrant'
require 'berkshelf/vagrant'

Vagrant::Config.run do |config|
Kitchen::Vagrant.define_vms(config)
end

0 comments on commit 3e15959

Please sign in to comment.