root/t2-web/trunk/Rakefile

Revision 223, 1.8 KB (checked in by mark9630@…, 13 months ago)

various bug fixes as collected from implicitime

Line 
1#
2# To change this template, choose Tools | Templates
3# and open the template in the editor.
4 
5
6require 'rubygems'
7require 'rake'
8require 'rake/clean'
9require 'rake/testtask'
10require 'rubygems/package_task'
11require 'rdoc/task'
12
13spec = Gem::Specification.new do |s|
14  s.name = 't2-web'
15  s.version = '0.2.0'
16  s.extra_rdoc_files = ['README', 'LICENSE', 'CHANGES']
17  s.summary = 'Web application that generates a Web UI form for a Taverna2 workflow, given its myExperiment id, for ease of execution. The only requirement for the user is a web browser.'
18  s.description = s.summary
19  s.authors = ['Kostas Karasavvas','Mark Thompson', 'Reinout van Schouwen']
20  s.email = 'mark9630@gmail.com'
21  s.executables = ['t2-web']
22  s.files = %w(LICENSE README CHANGES Rakefile Gemfile Gemfile.lock) + Dir.glob("{bin,lib,doc,spec,public,views}/**/*")
23  s.require_path = "lib"
24  s.bindir = "bin"
25  s.add_dependency 'sinatra', '~> 1.3.0'
26  s.add_dependency 'thin', '~> 1.2.11'
27  s.add_dependency 'haml', '~> 3.1.2'
28  s.add_dependency 'rest-client', '~> 1.6.3'
29  s.add_dependency 't2-server', '~> 0.6.1'
30  s.add_dependency 'myexperiment-rest', '~> 0.3.3'
31  s.add_dependency 'nokogiri', '~> 1.5.9'
32end
33
34Gem::PackageTask.new(spec) do |p|
35  p.gem_spec = spec
36  p.need_tar = true
37  p.need_zip = true
38end
39
40RDoc::Task.new do |rdoc|
41  files =['README', 'LICENSE', 'CHANGES', 'lib/**/*.rb']
42  rdoc.rdoc_files.add(files)
43  rdoc.main = "README" # page to start on
44  rdoc.title = "web-t2 Docs"
45  rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
46  rdoc.options << '--line-numbers'
47end
48
49Rake::TestTask.new do |t|
50  t.test_files = FileList['test/**/*.rb']
51end
52
53# make gem and copy to test deployment server
54task :copy_to_server => :gem do
55  `scp pkg/#{spec.name}-#{spec.version}.gem  kostas@mybiobank.org:/home/kostas`
56end
Note: See TracBrowser for help on using the browser.