-
Notifications
You must be signed in to change notification settings - Fork 40
/
Rakefile
33 lines (27 loc) · 882 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'
# 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__))
# Load all the rake tasks from the "tasks" folder. This folder
# allows us to nicely separate rake tasks into individual files
# based on their role, which makes development and debugging easier
# than one monolithic file.
task_dir = File.expand_path("../tasks", __FILE__)
Dir["#{task_dir}/**/*.rake"].each do |task_file|
load task_file
end
# Default task is to run specs
task :default => :spec
desc "Run specs"
task :spec do
exec("bundle exec rake internal_spec")
end
task :internal_spec do
require 'bundler/setup'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:actual_spec)
Rake::Task["actual_spec"].invoke
end