forked from unwire/handsoap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
48 lines (43 loc) · 1.71 KB
/
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
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "handsoap"
gemspec.summary = "Handsoap is a library for creating SOAP clients in Ruby"
gemspec.email = ["[email protected]","[email protected]"]
gemspec.homepage = "http://github.com/unwire/handsoap"
gemspec.description = gemspec.summary
gemspec.authors = ["Troels Knak-Nielsen", "Jimmi Westerberg"]
gemspec.requirements << "You need to install either \"curb\" or \"httpclient\", using one of:\n gem install curb\n gem install httpclient"
gemspec.requirements << "It is recommended that you install either \"nokogiri\" or \"libxml-ruby\""
gemspec.files = FileList['lib/**/*.rb', 'generators/handsoap/templates', 'generators/**/*', '[A-Z]*.*'].to_a
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
desc "Generates API documentation"
task :rdoc do
sh "rm -rf doc && rdoc lib"
end
require 'rake/testtask'
namespace :test do
desc "Remove temporary files generated by test case"
task :cleanup do
puts "Clearing temporary files"
sh "rm -rf tests/rails_root"
end
Rake::TestTask.new :test do |test|
# Rake::Task['test:cleanup'].invoke
test.test_files = FileList.new('tests/**/*_test.rb') do |list|
list.exclude 'tests/benchmark_integration_test.rb'
list.exclude 'tests/service_integration_test.rb'
list.exclude 'tests/httpauth_integration_test.rb'
end
test.libs << 'tests'
test.verbose = true
end
end
desc "Run tests and clean up afterwards"
task :test => ["test:cleanup", "test:test", "test:cleanup"]
task :default => [:test]