forked from fog/fog-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (27 loc) · 808 Bytes
/
Rakefile
File metadata and controls
33 lines (27 loc) · 808 Bytes
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 'bundler/setup'
task :travis => ['test:travis', 'coveralls_push_workaround']
task :default => [:test]
require "rake/testtask"
Rake::TestTask.new do |t|
t.libs << "lib"
t.libs << "spec"
t.pattern = "spec/**/*_spec.rb"
end
namespace :test do
mock = 'true' || ENV['FOG_MOCK']
task :travis do
# jruby coveralls causes an OOM in travis
ENV['COVERAGE'] = 'false' if RUBY_PLATFORM == 'java'
sh("export FOG_MOCK=#{mock} && rake")
end
end
#require "tasks/changelog_task"
#Fog::Rake::ChangelogTask.new
task :coveralls_push_workaround do
use_coveralls = (Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.9.2'))
if (ENV['COVERAGE'] != 'false') && use_coveralls
require 'coveralls/rake/task'
Coveralls::RakeTask.new
Rake::Task["coveralls:push"].invoke
end
end