mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-25 21:28:40 -05:00
Add gem release Rakefile
This commit is contained in:
parent
faf92a502d
commit
5f0ace0c82
1 changed files with 22 additions and 0 deletions
22
Rakefile
Normal file
22
Rakefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
require 'rubygems'
|
||||
require 'bundler/setup'
|
||||
require 'rspec/core/rake_task'
|
||||
|
||||
# Immediately sync all stdout so that tools like buildbot can
|
||||
# immediately load in the output.
|
||||
$stdout.sync = true
|
||||
$stderr.sync = true
|
||||
|
||||
# Change to the directory of this file.
|
||||
Dir.chdir(File.expand_path("../", __FILE__))
|
||||
|
||||
# This installs the tasks that help with gem creation and
|
||||
# publishing.
|
||||
Bundler::GemHelper.install_tasks
|
||||
|
||||
# Install the `spec` task so that we can run tests.
|
||||
RSpec::Core::RakeTask.new(:spec) do |t|
|
||||
t.rspec_opts = "--order defined"
|
||||
end
|
||||
# Default task is to run the unit tests
|
||||
task :default => :spec
|
||||
Loading…
Add table
Add a link
Reference in a new issue