summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
author☈king <rking@sharpsaw.org>2012-12-08 08:08:54 -0700
committerrking@sharpsaw.org <>2012-12-09 19:19:38 -0700
commit6861a36179d5498600bc994aba8110fbd3122e6d (patch)
treea3b067fbc44c23877704f1988f4833032bc599dd /Rakefile
parentcbf19cc7a47d7a5a2d723eefc48ef1b2130d3220 (diff)
downloadpry-6861a36179d5498600bc994aba8110fbd3122e6d.tar.gz
Deduplicate bacon invocation
Surprising how much this thrashed so far.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 0fbf3a39..dd24f1df 100644
--- a/Rakefile
+++ b/Rakefile
@@ -48,7 +48,12 @@ task :default => [:test]
desc "Run tests"
task :test do
check_dependencies unless ENV['SKIP_DEP_CHECK']
- all_specs = Dir['spec/**/*_spec.rb']
+ all_specs =
+ if explicit_list = ENV['run']
+ explicit_list.split(',')
+ else
+ Dir['spec/**/*_spec.rb']
+ end
all_specs.shuffle! if all_specs.respond_to? :shuffle!
system "bacon -Ispec -rubygems -q #{all_specs.join ' '}"
end