Rakefile in mixlib-versioning-1.2.1 vs Rakefile in mixlib-versioning-1.2.2
- old
+ new
@@ -1,32 +1,24 @@
require "bundler/gem_tasks"
-
require "rspec/core/rake_task"
-require "mixlib/versioning/version"
RSpec::Core::RakeTask.new(:unit)
-require "chefstyle"
-require "rubocop/rake_task"
-desc "Run Ruby style checks"
-RuboCop::RakeTask.new(:style)
-
-require "yard"
-YARD::Rake::YardocTask.new(:doc)
-
begin
- require "github_changelog_generator/task"
-
- GitHubChangelogGenerator::RakeTask.new :changelog do |config|
- config.issues = false
- config.future_release = Mixlib::Versioning::VERSION
+ require "chefstyle"
+ require "rubocop/rake_task"
+ RuboCop::RakeTask.new(:chefstyle) do |task|
+ task.options << "--display-cop-names"
end
rescue LoadError
- puts "github_changelog_generator is not available. gem install github_changelog_generator to generate changelogs"
+ puts "chefstyle gem is not installed"
end
+require "yard"
+YARD::Rake::YardocTask.new(:doc)
+
namespace :travis do
- desc "Run tests on Travis"
- task ci: [:style, :unit]
+ desc "Run tests on Travis CI"
+ task ci: %w{chefstyle unit}
end
-task default: [:style, :unit]
+task default: %w{travis:ci}