-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathRakefile
40 lines (34 loc) · 892 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
32
33
34
35
36
37
38
39
40
# rjr project Rakefile
#
# Copyright (C) 2010-2012 Mohammed Morsi <mo@morsi.org>
# Licensed under the Apache License, Version 2.0
require "rspec/core/rake_task"
desc "Run all specs"
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'specs/**/*_spec.rb'
spec.rspec_opts = ['--backtrace']
end
desc "run javascript tests"
task :test_js do
ENV['RUBYLIB'] = "lib"
puts "Launching js test runner"
system("tests/js/runner")
end
desc "run integration/stress tests"
task :integration do
ENV['RUBYLIB'] = "lib"
puts "Launching integration test runner"
system("tests/integration/runner")
end
begin
require "yard"
YARD::Rake::YardocTask.new do |t|
#t.files = ['lib/**/*.rb', OTHER_PATHS] # optional
#t.options = ['--any', '--extra', '--opts'] # optional
end
rescue LoadError
end
desc "build the rjr gem"
task :build do
system "gem build rjr.gemspec"
end