diff options
author | Tim Smith <tsmith@chef.io> | 2018-09-10 07:34:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 07:34:43 -0700 |
commit | db8b538f52a1aa7c3cdabf9dcc6871940f54a937 (patch) | |
tree | 565558c3d47c4ce952fb6d12cd0e612a503c938d | |
parent | b04cd3de89f347f3533f72616238ed8be54a389a (diff) | |
parent | 1e20788e2dc315e8ebf8331ca6abfba24d0d7605 (diff) | |
download | ohai-db8b538f52a1aa7c3cdabf9dcc6871940f54a937.tar.gz |
Merge pull request #1243 from chef/rakefile
More rake / Travis updates
-rw-r--r-- | .travis.yml | 3 | ||||
-rw-r--r-- | Gemfile | 13 | ||||
-rw-r--r-- | README.md | 15 |
3 files changed, 25 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 171aa74b..25a09de6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: ruby cache: bundler -dist: trusty sudo: false @@ -9,6 +8,8 @@ branches: - master - 13-stable +bundler_args: --jobs 7 --without docs debug + before_install: - gem --version - rvm @global do gem uninstall bundler -a -x -I || true @@ -17,6 +17,19 @@ group :ci do gem "rspec_junit_formatter" end +group :docs do + gem "yard" + gem "redcarpet" + gem "github-markup" +end + +group :debug do + gem "pry" + gem "pry-byebug" + gem "pry-stack_explorer" + gem "rb-readline" +end + instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"] # If you want to load debugging tools into the bundle exec sandbox, @@ -37,11 +37,16 @@ Ohai has some Rake tasks for doing various things. ``` rake -T -rake build # Build the gem file ohai-$VERSION.gem -rake install # install the gem locally -rake install:local # install the gem locally without network access -rake release # Create tag $VERSION, build gem, and push to Rubygems -rake spec # Run RSpec tests +rake build # Build ohai-$VERSION.gem into the pkg directory +rake clean # Remove any temporary products +rake clobber # Remove any generated files +rake docs # Generate YARD Documentation +rake install # Build and install ohai-$VERSION.gem into system gems +rake install:local # Build and install ohai-$VERSION.gem into system gems without network access +rake release[remote] # Create tag $VERSION and build and push ohai-$VERSION.gem to rubygems.org +rake spec # Run RSpec code examples +rake style # Run Chefstyle tests +rake style:auto_correct # Auto-correct RuboCop offenses ($VERSION is the current version, from the GemSpec in Rakefile) ``` |