File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1
1
source "https://rubygems.org"
2
2
3
+ group :development , :test do
4
+ # This is here because gemspec doesn't support require: false
5
+ gem 'coveralls' , :require => false
6
+ end
7
+
3
8
gemspec
Original file line number Diff line number Diff line change 47
47
48
48
GEM_NAME = "#{ name } "
49
49
task :default => :test
50
+ task :travis => [ 'test:travis' , 'coveralls_push_workaround' ]
50
51
51
52
require "tasks/test_task"
52
53
Fog ::Rake ::TestTask . new
53
54
54
55
namespace :test do
56
+ task :travis do
57
+ [ true ] . each do |mock |
58
+ sh ( "export FOG_MOCK=#{ mock } && bundle exec shindont" )
59
+ end
60
+ end
55
61
task :vsphere do
56
62
[ true ] . each do |mock |
57
63
sh ( "export FOG_MOCK=#{ mock } && bundle exec shindont tests/vsphere" )
186
192
187
193
require "tasks/changelog_task"
188
194
Fog ::Rake ::ChangelogTask . new
195
+
196
+ task :coveralls_push_workaround do
197
+ if Gem ::Version . new ( RUBY_VERSION ) > Gem ::Version . new ( '1.9' )
198
+ require 'coveralls/rake/task'
199
+ Coveralls ::RakeTask . new
200
+ Rake ::Task [ "coveralls:push" ] . invoke
201
+ end
202
+ end
You can’t perform that action at this time.
0 commit comments