forked from Marketcircle/jiraSOAP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
54 lines (43 loc) · 1.11 KB
/
Rakefile
File metadata and controls
54 lines (43 loc) · 1.11 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
require 'rubygems'
require 'bundler'
begin
Bundler.setup :default, :development
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
task :default => :test
namespace :macruby do
desc 'AOT compile for MacRuby'
task :compile do
FileList["lib/**/*.rb"].each do |source|
name = File.basename source
puts "#{name} => #{name}o"
`macrubyc --framework Foundation --arch x86_64 -C '#{source}' -o '#{source}o'`
end
end
desc 'Clean MacRuby binaries'
task :clean do
FileList["lib/**/*.rbo"].each do |bin|
rm bin
end
end
end
desc 'Build the gem'
task :build do
puts `gem build -v jiraSOAP.gemspec`
end
desc 'Install the gem in the current directory with the highest version number'
task :install => :build do
puts `gem install #{Dir.glob('*.gem').sort.reverse.first}`
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
require 'yard'
YARD::Rake::YardocTask.new