-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
40 lines (33 loc) · 858 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
# Copyright (c) 2009-2013 The University of Manchester, UK.
#
# See LICENCE file for details.
#
# Authors: Finn Bacall
# Robert Haines
# David Withers
# Mannie Tagarira
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/tasklib'
require 'rake/testtask'
require 'rdoc/task'
require 't2flow/version'
require 'rubocop/rake_task'
task :default => [:test]
T2FLOW_GEM_VERSION = T2Flow::VERSION
Rake::TestTask.new do |t|
t.libs << "test"
t.pattern = 'test/test_*.rb'
t.verbose = true
# t.warning = true
end
RDoc::Task.new do |r|
r.main = "README.rdoc"
lib = Dir.glob("lib/**/*.rb")
r.rdoc_files.include("README.rdoc", "LICENCE", "CHANGES.rdoc", lib)
r.options << "-t Taverna T2Flow Library version #{T2FLOW_GEM_VERSION}"
r.options << "-N"
r.options << "--tab-width=2"
end
RuboCop::RakeTask.new