File tree Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ Dir.glob('tasks/**/*.rake').each do |rakefile|
42
42
end
43
43
44
44
def has_docker?
45
- system ( "docker version > /dev/null 2>&1" )
46
- 0 == $?. exitstatus
45
+ system ( "docker version > /dev/null 2>&1 || boot2docker version > /dev/null 2>&1" )
47
46
end
48
47
49
48
if Concurrent . on_jruby?
@@ -181,7 +180,20 @@ begin
181
180
'--tag ~notravis'
182
181
end
183
182
184
- task :ci => [ :clean , :compile , :travis ]
183
+ RSpec ::Core ::RakeTask . new ( :appveyor ) do |t |
184
+ t . rspec_opts = '--backtrace ' \
185
+ '--tag ~unfinished ' \
186
+ '--seed 1 ' \
187
+ '--format documentation ' \
188
+ '--tag ~notravis'
189
+ end
190
+
191
+ if Concurrent . on_windows?
192
+ task :ci => [ :clean , :compile , :appveyor ]
193
+ else
194
+ task :ci => [ :clean , :compile , :travis ]
195
+ end
196
+
185
197
task :default => [ :clean , :compile , :spec ]
186
198
rescue LoadError
187
199
puts 'Error loading Rspec rake tasks, probably building the gem...'
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ def on_rbx?
19
19
ruby_engine == 'rbx'
20
20
end
21
21
22
+ def on_windows?
23
+ !( RbConfig ::CONFIG [ 'host_os' ] =~ /mswin|mingw|cygwin/ ) . nil?
24
+ end
25
+
22
26
def ruby_engine
23
27
defined? ( RUBY_ENGINE ) ? RUBY_ENGINE : 'ruby'
24
28
end
Original file line number Diff line number Diff line change 8
8
require 'simplecov'
9
9
require 'coveralls'
10
10
11
- SimpleCov . formatter = SimpleCov ::Formatter ::MultiFormatter [
11
+ if ENV [ 'TRAVIS' ]
12
+ SimpleCov . formatter = SimpleCov ::Formatter ::MultiFormatter [
12
13
SimpleCov ::Formatter ::HTMLFormatter ,
13
14
Coveralls ::SimpleCov ::Formatter
14
- ]
15
+ ]
16
+ else
17
+ SimpleCov . formatter = SimpleCov ::Formatter ::HTMLFormatter
18
+ end
15
19
16
20
SimpleCov . start do
17
21
project_name 'concurrent-ruby'
You can’t perform that action at this time.
0 commit comments