Skip to content

Commit

Permalink
Setup test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Annih committed Jun 12, 2015
1 parent 4f1f724 commit 5df7e11
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,6 +1,7 @@
language: ruby
rvm:
- 1.9.3
- 2.0.0
deploy:
edge: true
provider: chef-supermarket
Expand Down
2 changes: 2 additions & 0 deletions Berksfile
@@ -1,3 +1,5 @@
source 'https://supermarket.getchef.com'

metadata

cookbook 'wsus-client-test', path: './test/cookbooks/wsus-client-test'
9 changes: 7 additions & 2 deletions Gemfile
@@ -1,7 +1,12 @@
source 'https://rubygems.org'

gem 'berkshelf'
gem 'chefspec', '>= 4.2'
gem 'fauxhai', '>= 2.2'
gem 'foodcritic', '>= 4.0'
gem 'rake'

group :test do
gem 'foodcritic'
if RUBY_VERSION < '2.0'
gem 'chef', '< 12.0'
gem 'ohai', '< 8.0'
end
14 changes: 14 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,14 @@
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper"` to ensure that it is only
# loaded once.
#
require 'chefspec'
require 'chefspec/berkshelf'

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.order = 'random'
end
Empty file.
9 changes: 9 additions & 0 deletions test/cookbooks/wsus-client-test/metadata.rb
@@ -0,0 +1,9 @@
name 'wsus-client-test'
maintainer 'Criteo'
maintainer_email 'b.courtois@criteo.com'
license 'Apache 2.0'
description 'Test cookbook for wsus-client'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
supports 'windows'
depends 'wsus-client'

0 comments on commit 5df7e11

Please sign in to comment.