Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Commit

Permalink
Add testing files
Browse files Browse the repository at this point in the history
  • Loading branch information
tas50 committed Sep 10, 2015
1 parent 33d8545 commit 1d1bbc4
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .kitchen.yml
@@ -0,0 +1,20 @@
driver:
name: vagrant

provisioner:
name: chef_zero

platforms:
- name: centos-6.7
- name: centos-7.1
- name: ubuntu-12.04
run_list:
- recipe[apt::default]
- name: ubuntu-14.04
run_list:
- recipe[apt::default]

suites:
- name: default
run_list:
- recipe[whitelist-node-attrs::default]
12 changes: 12 additions & 0 deletions .travis.yml
@@ -0,0 +1,12 @@
sudo: false
cache: bundler
language: ruby
bundler_args: --without kitchen_common kitchen_vagrant kitchen_cloud
rvm:
- 2.0
- 2.1
- 2.2
script:
- bundle exec foodcritic -f any . --tags ~FC005 --tags ~FC015
- bundle exec rubocop
- bundle exec rspec --color --format progress
7 changes: 7 additions & 0 deletions Berksfile
@@ -0,0 +1,7 @@
source 'https://supermarket.chef.io'

metadata

group :integration do
cookbook 'apt'
end
25 changes: 25 additions & 0 deletions Gemfile
@@ -0,0 +1,25 @@
source 'https://rubygems.org'

group :lint do
gem 'foodcritic', '~> 4.0'
gem 'rubocop', '~> 0.33'
gem 'rake'
end

group :unit do
gem 'berkshelf', '~> 3.2'
gem 'chefspec', '~> 4.3'
end

group :kitchen_common do
gem 'test-kitchen', '~> 1.4'
end

group :kitchen_vagrant do
gem 'kitchen-vagrant', '~> 0.18'
end

group :kitchen_cloud do
gem 'kitchen-digitalocean'
gem 'kitchen-ec2'
end

0 comments on commit 1d1bbc4

Please sign in to comment.