diff options
author | Thom May <thom@chef.io> | 2016-08-03 17:35:47 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2016-08-03 17:35:47 +0100 |
commit | aaccbd577f113b2595487bcd341a4f7767b29a98 (patch) | |
tree | 6920a984ba8ae9cdd52c7cb9e2b9b9634a0e3325 | |
parent | 812b0cd4a8b205922234d733c68ccdc051c3c671 (diff) | |
download | mixlib-log-aaccbd577f113b2595487bcd341a4f7767b29a98.tar.gz |
test with updated ruby versions and run cucumbertm/update_travis
bonus Rakefile updates
Signed-off-by: Thom May <thom@may.lt>
-rw-r--r-- | .travis.yml | 6 | ||||
-rw-r--r-- | Rakefile | 20 |
2 files changed, 15 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml index 4d116b7..a0ad733 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,9 +11,11 @@ before_install: - bundle --version - gem --version rvm: - - 2.1 - - 2.2 + - 2.1.10 + - 2.2.5 + - 2.3.1 script: - bundle exec chefstyle - bundle exec rake spec + - bundle exec rake features @@ -1,16 +1,8 @@ -require "rake" -require "rubygems/package_task" +require "bundler/gem_tasks" require "rdoc/task" -require "yaml" require "rspec/core/rake_task" require "cucumber/rake/task" -gemspec = eval(IO.read("mixlib-log.gemspec")) - -Gem::PackageTask.new(gemspec) do |pkg| - pkg.gem_spec = gemspec -end - RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = "spec/**/*_spec.rb" end @@ -30,3 +22,13 @@ end Cucumber::Rake::Task.new(:features) do |t| t.cucumber_opts = "--format pretty" end + +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 |