forked from myoung34/vagrant-ovirt4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
executable file
·33 lines (27 loc) · 805 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'rubygems'
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'kitchen/rake_tasks'
# 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 all tests
namespace :test do
task :all do
RSpec::Core::RakeTask.new(:spec)
Rake::Task["spec"].execute
Kitchen::RakeTasks.new
Rake::Task['kitchen:all'].invoke
end
end
task :default => 'test:all'