forked from citation-style-language/styles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
26 lines (23 loc) · 663 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
require 'bundler'
begin
Bundler.setup
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install' to install missing gems"
exit e.status_code
end
if ENV['TRAVIS']
at_exit do
system('bundle exec sheldon')
end
end
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
if ENV['TRAVIS']
spec.rspec_opts = %w{ --require spec_helper.rb --format Fuubar --color --format json --out spec/sheldon/travis.json }
else
spec.rspec_opts = %w{ --require spec_helper.rb --format Fuubar --color --format json --out spec/sheldon/travis.json }
end
end
task :default => [:spec]