Skip to content

Commit

Permalink
Add Test Kitchen, ChefSpec, RuboCop, and Foodcritic on Travis CI
Browse files Browse the repository at this point in the history
Signed-off-by: Seth Vargo <[email protected]>
  • Loading branch information
sethvargo committed Oct 6, 2013
1 parent e412e32 commit 27f3b34
Show file tree
Hide file tree
Showing 31 changed files with 850 additions and 699 deletions.
26 changes: 20 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
.bundle
.cache
.kitchen
bin
*.sw[op]

*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
*.tmp
*.bk
*.bkup
.kitchen.local.yml
Berksfile.lock
Gemfile.lock

.bundle/
.cache/
.kitchen/
.vagrant/
.vagrant.d/
bin/
tmp/
vendor/
77 changes: 29 additions & 48 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,36 @@
---
driver_plugin: vagrant
driver_config:
require_chef_omnibus: true

platforms:
- name: ubuntu-12.04
driver_config:
box: opscode-ubuntu-12.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
run_list:
- recipe[apt]

- name: ubuntu-10.04
driver_config:
box: opscode-ubuntu-10.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_provisionerless.box
run_list:
- recipe[apt]

- name: centos-6.4
driver_config:
box: opscode-centos-6.4
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box
run_list:
- recipe[yum::epel]

- name: centos-5.9
driver_config:
box: opscode-centos-5.9
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-5.9_provisionerless.box
run_list:
- recipe[yum::epel]
- name: ubuntu-12.04
run_list:
- recipe[apt::default]
- name: ubuntu-10.04
run_list:
- recipe[apt::default]
- name: centos-6.4
run_list:
- recipe[yum::epel]
- name: centos-5.9
run_list:
- recipe[yum::epel]

suites:
- name: client
run_list:
- recipe[mysql::client]
attributes: {}
- name: ruby
run_list:
- recipe[mysql::ruby]
attributes: {}
- name: server
run_list:
- recipe[minitest-handler]
- recipe[mysql_test::server]
attributes: {}
- name: server-nondefault-data
run_list:
- recipe[minitest-handler]
- recipe[mysql_test::server]
attributes:
mysql:
data_dir: "/data/mysql"
- name: client
run_list:
- recipe[mysql::client]
- name: ruby
run_list:
- recipe[mysql::ruby]
- name: server
run_list:
- recipe[minitest-handler]
- recipe[mysql_test::server]
- name: server-nondefault-data
run_list:
- recipe[minitest-handler]
- recipe[mysql_test::server]
attributes:
mysql:
data_dir: "/data/mysql"
14 changes: 14 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
AllCops:
Excludes:
- vendor/**

AlignParameters:
Enabled: false
Encoding:
Enabled: false
HashSyntax:
Enabled: false
LineLength:
Enabled: false
MethodLength:
Max: 30
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rvm:
- 1.9.3
- 2.0.0
script:
- bundle exec foodcritic -f any . --tags ~FC007 --tags ~FC024
# - bundle exec rspec --color --format progress
- bundle exec rubocop
10 changes: 4 additions & 6 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
site :opscode

metadata

group :integration do
cookbook "apt"
cookbook "yum"

cookbook "mysql_test", :path => "./test/cookbooks/mysql_test"
cookbook "minitest-handler"
cookbook 'apt', '~> 2.0'
cookbook 'minitest-handler'
cookbook 'yum', '~> 2.0'
cookbook 'mysql_test', :path => 'test/cookbooks/mysql_test'
end
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mysql Cookbook CHANGELOG
========================
This file is used to list changes made in each version of the mysql cookbook.


v3.0.4
------
### Bug
Expand Down
29 changes: 0 additions & 29 deletions CONTRIBUTING

This file was deleted.

Loading

0 comments on commit 27f3b34

Please sign in to comment.