forked from javanthropus/stream
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
50 lines (34 loc) · 1.02 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
48
49
50
# Rakefile for stream -*- ruby -*-
require 'rubygems'
require 'bundler/setup'
require 'rubygems/package_task'
require 'rake/testtask'
require 'rake/clean'
require 'yard'
$:.unshift File.join(File.dirname(__FILE__), 'lib')
require 'stream' # require module to STREAM_VERSION
SRC_RB = FileList['lib/*.rb']
# The default task is run if rake is given no explicit arguments.
desc "Default Task"
task :default => :test
# Define a test task.
Rake::TestTask.new do |t|
t.libs << 'test'
t.pattern = 'test/test*.rb'
t.verbose = true
end
task :test
# Define a test that will run all the test targets.
desc "Run all test targets"
task :testall => [:test ]
# Git tagging
desc "Commit all changes as a new version commit. Tag the commit with v<version> tag"
task :tag do
puts "Committing and tagging version #{STREAM_VERSION}"
`git commit -am 'Version #{STREAM_VERSION}'`
`git tag 'v#{STREAM_VERSION}'`
end
# Documentation
YARD::Rake::YardocTask.new
# Tasks for building and installing Stream gem.
Bundler::GemHelper.install_tasks