forked from bdewey/org-ruby
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathRakefile
29 lines (21 loc) · 840 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
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
spec.rspec_opts = ["--format", "documentation", "--colour"]
end
Dir['tasks/*'].each {|task| import task }
task :test do
exit_status = nil
puts "Testing without CodeRay nor Pygments for code syntax highlight"
system('bundle --without pygments:coderay > /dev/null 2>&1')
exit_status = system('bundle exec rake spec')
puts "Testing with CodeRay for code syntax highlight"
system('bundle --without pygments > /dev/null 2>&1')
exit_status = system('bundle exec rake spec')
puts "Testing with Pygments for code syntax highlight"
system('bundle --without coderay > /dev/null 2>&1')
exit_status = system('bundle exec rake spec')
exit exit_status
end
task :default => 'test'