summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorTom Black <[email protected]>2015-10-04 20:12:32 -0400
committerTom Black <[email protected]>2015-10-04 20:12:32 -0400
commitd70e4d425eab3848226215d42b3a81b8e191de1a (patch)
tree197bd95fe7bf5a6479aceb646a8549cb1cf57183 /Rakefile
downloadruby2d-d70e4d425eab3848226215d42b3a81b8e191de1a.tar.gz
ruby2d-d70e4d425eab3848226215d42b3a81b8e191de1a.zip
First!
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..022193e
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,34 @@
+# require 'rake/testtask'
+
+task default: 'all'
+
+# Rake::TestTask.new do |t|
+# t.test_files = FileList['test/*_test.rb']
+# t.verbose = true
+# end
+
+desc "Build Gem"
+task :build do
+ puts "==> uninstall gem"
+ system "gem uninstall ruby2d --executables"
+
+ puts "==> build gem"
+ system "gem build ruby2d.gemspec --verbose"
+
+ puts "==> install gem"
+ system "gem install ruby2d-0.0.0.gem --local" # --verbose
+end
+
+
+desc "Run Testcard"
+task :testcard do
+ Rake::Task['build'].invoke
+ system '( cd tests/ ; ruby testcard.rb )'
+end
+
+
+desc "Test and Build"
+task :all do
+ # Rake::Task['test'].invoke
+ Rake::Task['build'].invoke
+end