forked from avalanche123/uvrb
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
31 lines (21 loc) · 901 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
30
31
require 'rubygems'
require 'rspec/core/rake_task' # testing framework
require 'yard' # yard documentation
require 'ffi' # loads the extension
require 'rake/clean' # for the :clobber rake task
require File.expand_path('../lib/libuv/ext/tasks', __FILE__) # platform specific rake tasks used by compile
# By default we don't run network tests
task :default => :limited_spec
RSpec::Core::RakeTask.new(:limited_spec) do |t|
# Exclude network tests
t.rspec_opts = "--tag ~network"
end
RSpec::Core::RakeTask.new(:spec)
desc "Run all tests"
task :test => [:spec]
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', '-', 'ext/README.md', 'README.md']
end
desc "Compile libuv from submodule"
task :compile => ["ext/libuv/lib/libuv.#{FFI::Platform::LIBSUFFIX}"]
CLOBBER.include("ext/libuv/lib/libuv.#{FFI::Platform::LIBSUFFIX}")