-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from chef/tm/chefstyle
Enable ChefStyle and Travis testing
- Loading branch information
Showing
21 changed files
with
292 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
branches: | ||
only: | ||
master | ||
|
||
language: ruby | ||
rvm: | ||
- 2.1 | ||
- 2.2 | ||
- 2.3.1 | ||
before_install: gem install bundler -v 1.11.2 | ||
script: bundle exec rake ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
gemspec | ||
|
||
group :test do | ||
gem 'minitar' | ||
group :development, :test do | ||
gem "minitar" | ||
gem "chefstyle" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
|
||
desc "Run tests for Travis CI" | ||
task ci: [:style, :spec] | ||
|
||
begin | ||
require "chefstyle" | ||
require "rubocop/rake_task" | ||
RuboCop::RakeTask.new(:style) do |task| | ||
task.options += ["--display-cop-names", "--no-color"] | ||
end | ||
rescue LoadError | ||
puts "chefstyle/rubocop is not available. gem install chefstyle to do style checking." | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'cookbook-omnifetch/version' | ||
require "cookbook-omnifetch/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "cookbook-omnifetch" | ||
spec.version = CookbookOmnifetch::VERSION | ||
spec.authors = [ | ||
'Jamie Winsor', | ||
'Josiah Kiehl', | ||
'Michael Ivey', | ||
'Justin Campbell', | ||
'Seth Vargo', | ||
'Daniel DeLeo' | ||
"Jamie Winsor", | ||
"Josiah Kiehl", | ||
"Michael Ivey", | ||
"Justin Campbell", | ||
"Seth Vargo", | ||
"Daniel DeLeo", | ||
] | ||
spec.email = [ | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]' | ||
spec.email = [ | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
] | ||
spec.summary = %q{Library code to fetch Chef cookbooks from a variety of sources to a local cache} | ||
spec.homepage = "http://www.getchef.com/" | ||
|
@@ -34,6 +34,6 @@ Gem::Specification.new do |spec| | |
spec.add_dependency "mixlib-archive", "~> 0.2" | ||
|
||
spec.add_development_dependency "rake", "~> 10.3" | ||
spec.add_development_dependency 'rspec','~> 3.0' | ||
spec.add_development_dependency "rspec", "~> 3.0" | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name 'example_cookbook' | ||
maintainer 'Berkshelf Core' | ||
version '0.5.0' | ||
name "example_cookbook" | ||
maintainer "Berkshelf Core" | ||
version "0.5.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name 'example_cookbook' | ||
maintainer 'Berkshelf Core' | ||
version '0.5.0' | ||
name "example_cookbook" | ||
maintainer "Berkshelf Core" | ||
version "0.5.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.