forked from tomas-stefano/infinity_test
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
73 lines (57 loc) · 2.2 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# encoding: utf-8
require 'rubygems'
require 'rake'
require 'rake/clean'
CLEAN.include('lib/*rbc','lib/*/*.rbc', 'spec/*.rbc', 'spec/*/*.rbc', 'lib/*/*/*rbc', 'spec/*/*/*rbc')
task :clean_without_verbose do
verbose(false)
Rake::Task['clean'].invoke
end
task :console do
period_dir = File.expand_path('.')
$LOAD_PATH.unshift(period_dir) unless $LOAD_PATH.include?(period_dir)
require 'irb'
require 'infinity_test'
ARGV.clear
IRB.start
end
$:.unshift(File.dirname(__FILE__) + '/lib')
POST_MESSAGE = <<-POST_INSTALL_MESSAGE
#{ '-' * 80}
T O I N F I N I T Y A N D B E Y O N D !!!
Infinity Test uses the awesome RVM to run.
If you don't have RVM installed, stop what you're doing =p.
RVM Installation Instructions:
http://rvm.beginrescueend.com/rvm/install/
And don't forget to see how you can customize Infinity Test here:
http://github.com/tomas-stefano/infinity_test/wiki/Customize-Infinity-Test
Happy Coding! :)
#{ '-' * 80}
POST_INSTALL_MESSAGE
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "infinity_test"
gemspec.summary = "Continuous testing and a flexible alternative to Autotest using Watchr and RVM"
gemspec.description = "Infinity Test is a continuous testing library and a flexible alternative to Autotest, using Watchr library with RSpec, Test::Unit or Bacon with RVM funcionality, giving the possibility to test with all Rubies that you have in your RVM configuration."
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/tomas-stefano/infinity_test"
gemspec.authors = ["Tomas D'Stefano"]
gemspec.add_dependency('watchr', '>= 0.7')
gemspec.add_dependency('notifiers', '>= 1.1.0')
gemspec.add_development_dependency('rspec', '>= 2.0.1')
gemspec.add_development_dependency('jeweler', '>= 1.4.0')
gemspec.post_install_message = POST_MESSAGE
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts("-" * 80)
puts "Jeweler not available. Install it with:
[sudo] gem install jeweler"
puts("-" * 80)
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new("spec") do |t|
t.pattern = "./spec/infinity_test/**/*_spec.rb"
end
task :default => :spec