diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-30 09:04:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-30 09:04:46 -0700 |
commit | f237f5cb279899059f4c7352f1d5af6e33c0492a (patch) | |
tree | 5cef3940c5fdeec2627461268636d789e94b8121 /Rakefile | |
parent | e4767da4b0dd744392a2080a481faa84b23a7b23 (diff) | |
parent | 26e912f4e882bc18746d8e3e95363438db27e195 (diff) | |
download | mixlib-log-f237f5cb279899059f4c7352f1d5af6e33c0492a.tar.gz |
Merge pull request #43 from chef/travis
Test on all the Ruby versions we support
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 33 |
1 files changed, 20 insertions, 13 deletions
@@ -1,22 +1,14 @@ require "bundler/gem_tasks" -require "rdoc/task" require "rspec/core/rake_task" require "cucumber/rake/task" -RSpec::Core::RakeTask.new(:spec) do |spec| - spec.pattern = "spec/**/*_spec.rb" -end - task default: [:style, :spec, :features] -# For rubygems-test -task test: :spec +Bundler::GemHelper.install_tasks -RDoc::Task.new do |rdoc| - rdoc.rdoc_dir = "rdoc" - rdoc.title = "mixlib-log #{Mixlib::Log::VERSION}" - rdoc.rdoc_files.include("README*") - rdoc.rdoc_files.include("lib/**/*.rb") +desc "Run specs" +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = "spec/**/*_spec.rb" end Cucumber::Rake::Task.new(:features) do |t| @@ -30,5 +22,20 @@ begin task.options += ["--display-cop-names", "--no-color"] end rescue LoadError - puts "chefstyle/rubocop is not available. gem install chefstyle to do style checking." + puts "chefstyle/rubocop is not available. bundle install first to make sure all dependencies are installed." +end + +begin + require "yard" + YARD::Rake::YardocTask.new(:docs) +rescue LoadError + puts "yard is not available. bundle install first to make sure all dependencies are installed." +end + +task :console do + require "irb" + require "irb/completion" + require "mixlib/log" + ARGV.clear + IRB.start end |