Skip to content

Commit

Permalink
correct rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
arirusso committed Oct 26, 2014
1 parent b43bd83 commit fb1ec42
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
$:.unshift File.join( File.dirname( __FILE__ ))
$:.unshift File.join( File.dirname( __FILE__ ), 'lib')

require 'rake'
require 'rake/testtask'
require 'unimidi'
require "rake"
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.test_files = FileList["test/**/*_test.rb"]
t.verbose = true
end

platforms = ["generic", "x86_64-darwin10.7.0", "i386-mingw32", "java", "i686-linux"]

task :build do
require "unimidi-gemspec"
platforms.each do |platform|
UniMIDI::Gemspec.new(platform)
filename = "unimidi-#{platform}.gemspec"
system "gem build #{filename}"
system "rm #{filename}"
end
end

task :release => :build do
platforms.each do |platform|
system "gem push unimidi-#{UniMIDI::VERSION}-#{platform}.gem"
end
end

task :default => [:test]

0 comments on commit fb1ec42

Please sign in to comment.