root/t2-web/trunk/Rakefile @ 176

Revision 176, 1.5 KB (checked in by kostas.karasavvas@…, 2 years ago)

Updated to new myexperiment-rest API and written something in README

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.0.5'
16  s.extra_rdoc_files = ['README', 'LICENSE', 'CHANGES']
17  s.summary = 'WS (with libs) that generates a Web UI form for a Taverna2 workflow and then enacts it to a T2 server.'
18  s.description = s.summary
19  s.author = 'Kostas Karasavvas'
20  s.email = 'kostas.karasavvas@nbic.nl'
21  s.executables = ['t2_webapp.rb']
22  s.files = %w(LICENSE README CHANGES Rakefile) + Dir.glob("{bin,lib,spec,public,views}/**/*")
23  s.require_path = "lib"
24  s.bindir = "bin"
25  s.add_dependency 'sinatra', '~> 1.2.6'
26  s.add_dependency 'haml', '~> 3.1.2'
27  s.add_dependency 'rest-client', '~> 1.6.3'
28  s.add_dependency 't2-server', '~> 0.6.1'
29  s.add_dependency 'myexperiment-rest', '~> 0.3.0'
30end
31
32Gem::PackageTask.new(spec) do |p|
33  p.gem_spec = spec
34  p.need_tar = true
35  p.need_zip = true
36end
37
38RDoc::Task.new do |rdoc|
39  files =['README', 'LICENSE', 'CHANGES', 'lib/**/*.rb']
40  rdoc.rdoc_files.add(files)
41  rdoc.main = "README" # page to start on
42  rdoc.title = "web-t2 Docs"
43  rdoc.rdoc_dir = 'doc/rdoc' # rdoc output folder
44  rdoc.options << '--line-numbers'
45end
46
47Rake::TestTask.new do |t|
48  t.test_files = FileList['test/**/*.rb']
49end
50
51# make gem and copy to test deployment server
52task :copy_to_server => :gem do
53  `scp pkg/#{spec.name}-#{spec.version}.gem  kostas@mybiobank.org:/home/kostas`
54end
Note: See TracBrowser for help on using the browser.