forked from itspriddle/active_mailbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
33 lines (26 loc) · 812 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
require 'rake/testtask'
$:.unshift 'lib'
desc "Start an IRB session preloaded with this library"
task :console do
sh "ASTERISK_VOICEMAIL_ROOT='./test/fixtures/' irb -rlib/active_mailbox.rb -I./lib"
end
require 'sdoc_helpers'
desc "Push a new version to Gemcutter"
task :publish do
require 'active_mailbox/version'
ver = ActiveMailbox::Version
sh "gem build active_mailbox.gemspec"
sh "gem push active_mailbox-#{ver}.gem"
sh "git tag -a -m 'ActiveMailbox v#{ver}' v#{ver}"
sh "git push origin v#{ver}"
sh "git push origin master"
sh "git clean -fd"
sh "rake pages"
end
task :default => :test
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test' << '.'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end