public
Description: Ruby invoicing framework gem
Homepage: http://invoicing.rubyforge.org/
Clone URL: git://github.com/ept/invoicing.git
invoicing / Rakefile
100644 20 lines (16 sloc) 0.33 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
desc "Run rake test for invoicing gem"
task :test do
  exec "cd invoicing; rake test"
end
 
task :create_db do
  cmd_string = %[mysqladmin create ept_invoicing_test -u build]
  system cmd_string
end
 
def runcoderun?
  ENV["RUN_CODE_RUN"]
end
 
if runcoderun?
  task :default => [:create_db, :test]
else
  task :default => :test
end