Child pages
  • Setting up a development environment for Buildr plugin
Skip to end of metadata
Go to start of metadata

Setting up a development environment for Buildr plugin

Prerequisites:

  • Install git.
  • Install ruby, rubygems, and the braid gem.

Basic setup:

  • Create a new folder and cd to it. To create the minimal skeleton for your GEM
  • run git init && touch README && git add README && git commit -m "initial commit"
  • run braid add git://git.apache.org/buildr.git --branch trunk buildr
  • run ln -s buildr/rakelib rakelib
  • Create your .gemspec file.
  • Then copy buildr/Rakefile to Rakefile, and replace the reference to buildr.gemspec to your .gemspec.
  • Create your structure: a lib, a spec folder.
  • run echo "_reports" >> .gitignore

Specs setup:

  • Create spec/spec_helpers.rb
  • Paste this code in it:

You're done.

Try rake -T to see the buildr tasks available, use rake coverage to run tests and rake failed when you need to insist.

  • No labels