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 7, 2013
1 parent 6233789 commit faf61ac
Show file tree
Hide file tree
Showing 23 changed files with 681 additions and 372 deletions.
22 changes: 14 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
.vagrant
Berksfile.lock
Gemfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
.bundle
.cache
.kitchen
bin
*.tmp
*.bk
*.bkup
.kitchen.local.yml
/metadata.json
Berksfile.lock
Gemfile.lock

.bundle/
.cache/
.kitchen/
.vagrant/
.vagrant.d/
bin/
tmp/
vendor/
42 changes: 10 additions & 32 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,16 @@
---
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: http://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: http://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: http://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-5.9_provisionerless.box
run_list:
- recipe[yum::epel]
platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt::default]
- name: centos-6.4
run_list:
- recipe[yum::epel]

suites:
- name: default
run_list:
- recipe[openvpn]
attributes: {}
- name: default
run_list:
- recipe[openvpn::default]
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
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rvm:
- 1.9.3
- 2.0.0
before_script:
- bundle exec berks install
script:
- bundle exec foodcritic -f any .
- bundle exec rspec --color --format progress
- bundle exec rubocop
8 changes: 2 additions & 6 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
site :opscode

metadata

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

# Future, when/if minitest support for this cookbook is added
#cookbook "minitest-handler"
cookbook 'apt', '~> 2.0'
cookbook 'yum', '~> 2.0'
end
29 changes: 0 additions & 29 deletions CONTRIBUTING

This file was deleted.

Loading

0 comments on commit faf61ac

Please sign in to comment.