Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 55 lines (42 sloc) 1.335 kb
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
# encoding: utf-8

# See ./rakelib/*.rake for all tasks.

ENV['RUBYOPT'] = '' # no RUBYOPT for spawned MacRuby processes

desc "Same as all"
task :default => :all

desc "Same as install:all"
task :install => 'install:all'

desc "Same as macruby:build"
task :macruby => 'macruby:build'

# The old test tasks are now commented since we are switching to RubySpec
# for regression testing. We still add a task to run the VM regression test
# suite, though.
desc "Run the VM regression test suite"
task :test_vm do
  sh "/usr/bin/ruby test_vm.rb"
end
=begin
desc "Run the sample tests"
task :sample_test do
sh "./miniruby rubytest.rb"
end

desc "Run the unit tests"
task :unit_tests do
sh "./miniruby test/macruby_runner.rb"
end

desc "Run all tests"
task :test => [:sample_test, :unit_tests]
=end

desc "Clean local and extension build files"
task :clean => ['clean:local', 'clean:rbo', 'clean:ext', 'clean:doc', 'clean:info_plist']

desc "Build everything"
task :all => [:macruby, 'stdlib:build', :extensions, :doc, :info_plist]

desc "Create an archive (GIT only)"
task :git_archive do
  sh "git archive --format=tar --prefix=MacRuby-HEAD/ HEAD | gzip >MacRuby-HEAD.tar.gz"
end

desc "Run all 'known good' specs (task alias for spec:ci)"
task :spec => 'spec:ci'

desc "Run IRB"
task :irb do
  exec './miniruby -I./lib ./bin/irb'
end
Something went wrong with that request. Please try again.