-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
75 lines (60 loc) · 1.65 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
require "bundler/gem_tasks"
require 'rake/testtask'
require 'colorize'
Rake::TestTask.new do |t|
t.libs << "spec"
t.pattern = "spec/**/*_spec.rb"
end
task :default => [:install]
desc "continuous testing"
task "runBird" do
sh %Q{clear}
# puts "\nbird test".white
# sh %Q{bundle exec ./bin/bird cloud ips} do |ok, res|
# if ! ok
# puts "failed to run bird cloud ips"
# end
# end
# puts "\nbird help".white
# sh %Q{bundle exec ./bin/bird help} do |ok, res|
# if ! ok
# puts "failed to run bird help"
# end
# end
# puts "\nbird help cloud".white
# sh %Q{bundle exec ./bin/bird help cloud} do |ok, res|
# if ! ok
# puts "failed to run bird help cloud"
# end
# end
puts "\n bird setup:".white
sh %Q{./bird setup}
puts "\n bird setup override --vorg test_org_name --host vcloud.host.name --user test_user --pass azBHehbD2EibMuxGZPqIVQ==".white
sh %Q{./bird setup override --org_name test_org_name --host vcloud.host.name --user test_user --pass donkeyPass}
puts "\ntests".white
sh %Q{bundle exec rake test} do |ok, res|
if ! ok
puts "failed to run bundle exec rake test"
end
end
end
desc "Install Gems"
task "bundle:install" do
sh %Q{bundle install --standalone --clean} do |ok, res|
if ! ok
puts "fail to install gems (status = #{res.exitstatus})"
end
end
end
desc "Update Gems"
task "bundle:update" do
sh %Q{bundle update && bundle install --standalone --clean} do |ok, res|
if ! ok
puts "fail to update gems (status = #{res.exitstatus})"
end
end
end
desc "Generate Doc"
task :doc do
sh %Q{pandoc -f markdown -o "README.pdf" README.md}
end