Initialise testing tools

- add needed infrastructure (Gemfile, Berksfile)
- disabled two non-critical rubocop tests

To make use of these, run:

    bundle install
    bundle exec strainer test
This commit is contained in:
Stephan Renatus
2014-01-23 09:33:47 +01:00
parent f2262864e6
commit 2c3d4d1941
4 changed files with 22 additions and 0 deletions

5
.rubocop.yml Normal file
View File

@@ -0,0 +1,5 @@
StringLiterals:
Enabled: false
LineLength:
Enabled: false

3
Berksfile Normal file
View File

@@ -0,0 +1,3 @@
site :opscode
metadata

9
Gemfile Normal file
View File

@@ -0,0 +1,9 @@
source "https://rubygems.org"
gem "chef", "~> 11.4.4"
gem "json", "<= 1.7.7" # chef 11 dependency
gem "berkshelf", "~> 2.0.10"
gem "chefspec", "~> 3.0.2"
gem "foodcritic", "~> 3.0.3"
gem "strainer"
gem "rubocop"

5
Strainerfile Normal file
View File

@@ -0,0 +1,5 @@
# Strainerfile
rubocop: bundle exec rubocop $SANDBOX/$COOKBOOK
knife test: bundle exec knife cookbook test $COOKBOOK
foodcritic: bundle exec foodcritic -f any -t ~FC003 -t ~FC023 $SANDBOX/$COOKBOOK
#chefspec: bundle exec rspec $SANDBOX/$COOKBOOK/spec