Menu

[256b7c]: / Rakefile  Maximize  Restore  History

Download this file

39 lines (31 with data), 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
34
35
36
37
38
require 'rspec/core/rake_task'
require 'yard'
task :default => :integration
# Run unit tests.
# Friendly for CI tools without installing NetLinx compiler.
task :ci do
ENV['INTEGRATION_TEST'] = nil
Rake::Task[:test].invoke
end
# Run integration tests.
# Requires NetLinx compiler to be installed on system.
task :integration do
ENV['INTEGRATION_TEST'] = 'true'
Rake::Task[:test].invoke
end
RSpec::Core::RakeTask.new :test do |c|
c.rspec_opts = '--color --format Fivemat'
end
# Build the gem.
task :build => :doc do
Dir['*.gem'].each {|file| File.delete file}
system 'gem build *.gemspec'
end
# Rebuild and [re]install the gem.
task :install => :build do
system 'gem install *.gem'
end
# Generate documentation.
YARD::Rake::YardocTask.new :doc do |t|
t.options = %w(- license.txt)
end
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.