Permalink
Browse files

Removed legacy rake tasks

moved socket.rb to library
removed rake directory.
  • Loading branch information...
1 parent 91ee308 commit 8b118bf4dfb1a36f7de3ee1c13641d3ef3e71aa7 Brian Ford committed Aug 12, 2007
Showing with 3 additions and 206 deletions.
  1. +3 −4 Rakefile
  2. 0 {lib → library}/socket.rb
  3. +0 −10 rake/group_spec_task.rb
  4. +0 −95 rake/legacy_tasks.rb
  5. +0 −97 rake/rubinius_spec_tasks.rb
View
@@ -1,6 +1,3 @@
-require 'rake/legacy_tasks'
-require 'rake/rubinius_spec_tasks'
-
task :default => :tasks
task :tasks do
@@ -69,6 +66,8 @@ def update_archive(files, archive, dir=nil)
end
# spec tasks
+desc "Run continuous integration examples"
+task :spec => 'spec:ci'
namespace :spec do
namespace :setup do
desc "Setup for subtend examples"
@@ -96,7 +95,7 @@ namespace :spec do
sh "bin/mspec -t #{target} -f ci CI-specs"
end
- spec_targets = %w(compiler core incompatible language library parser rubinius)
+ spec_targets = %w(compiler core language library parser rubinius)
# Build a spec:<task_name> for each group of Rubinius specs
spec_targets.each do |group|
desc "Run #{group} examples"
File renamed without changes.
View
@@ -1,10 +0,0 @@
-
-# A generalized spectask for rubinius
-class GroupSpecTask < Spec::Rake::SpecTask
- def initialize(group)
- super(group) do |t|
- t.spec_files = FileList["spec/#{group}/*_spec.rb"]
- end
- end
-end
-
View
@@ -1,95 +0,0 @@
-namespace :legacy do
- desc "Ensure that the correct version of the sydparse gem is installed."
- task :check_syd do
- require 'rubygems'
- begin
- gem 'sydparse', '>= 1.2.1'
- rescue Gem::LoadError
- puts "\nYour system does not have the required sysparse gem installed...\n"
- Rake::Task['build_syd'].invoke
- raise "Gem 'sydparse' must be installed from externals/syd-parser/pkg directory."
- end
- end
-
- desc "Build sydparse gem."
- task :build_syd do
- puts "Building externals/syd-parser gem...\n"
- Dir.chdir('externals/syd-parser')
- system("rake gem")
- raise 'Failed to build externals/syd-parser gem' if $?.exitstatus != 0
- puts "\nNow do 'gem install externals/syd-parser/pkg/*.gem' as your gem superuser.\n\n"
- end
-
- desc "Build the VM bootstrap archive."
- task :rcompile_bootstrap => :check_syd do
- Dir.chdir "kernel" do
- files = Dir["bootstrap/*.rb"].sort
-
- changed = []
- files.each do |file|
- cmp = "#{file}c"
- unless newer?(file, cmp)
- changed << cmp
- system "#{COMPILER} #{file}"
- raise "Failed to compile #{file}" if $?.exitstatus != 0
- end
- file << "c"
- end
-
- File.open(".load_order.txt","w") do |f|
- f.puts files.join("\n")
- end
-
- archive = "../runtime/bootstrap.rba"
-
- if File.exists? archive
- if changed.empty?
- puts "No kernel/bootstrap files to update."
- else
- system "zip -u #{archive} .load_order.txt #{changed.join(' ')}"
- end
- else
- system "zip #{archive} .load_order.txt #{files.join(' ')}"
- end
- end
- end
-
- desc "Build the core classes and methods archive."
- task :rcompile_core => :check_syd do
- files = nil
- Dir.chdir("kernel") do
- files = Dir["core/*.rb"].sort
- files.delete "core/__loader.rb"
-
- files << "core/__loader.rb"
-
- changed = []
- files.each do |file|
- cmp = "#{file}c"
- unless newer?(file, cmp) # File.exists?(cmp) and File.mtime(cmp) >= File.mtime(file)
- changed << cmp
- system "#{COMPILER} #{file}"
- raise "Failed to compile #{file}" if $?.exitstatus != 0
- end
- file << "c"
- end
-
- File.open(".load_order.txt","w") do |f|
- f.puts files.join("\n")
- end
-
- archive = "../runtime/core.rba"
-
- if File.exists? archive
- if changed.empty?
- puts "No kernel/core files to update."
- else
- system "zip -u #{archive} .load_order.txt #{changed.join(' ')}"
- end
- else
- system "zip #{archive} .load_order.txt #{files.join(' ')}"
- end
- end
- end
-end
-
@@ -1,97 +0,0 @@
-begin
- require 'spec/rake/spectask'
-rescue LoadError
- raise <<-EOM
- Unable to load spec/rake/spectask. RSpec is a requirement to build Rubinius.
- Please install RSpec before building (http://rspec.rubyforge.org).
-EOM
-end
-
-ROOT = File.expand_path(File.join(File.dirname(__FILE__),'..'))
-def from_root_dir
- dir = Dir.pwd
- Dir.chdir(ROOT)
- yield
- Dir.chdir(dir)
-end
-
-#namespace :spec do
-# namespace :setup do
-# task :subtend do
-# Dir[File.join(ROOT,"spec/subtend/**/Rakefile")].each do |rakefile|
-# sh "rake -f #{rakefile}"
-# end
-# end
-# end
-#
-# spec_targets = %w(compiler core incompatible language library parser rubinius)
-# # Build a spec:<task_name> for each group of Rubinius specs
-# spec_targets.each do |group|
-# desc "Run '#{group}' specifications"
-# task group do
-# from_root_dir do
-# sh "bin/specrunner spec/#{group}"
-# end
-# end
-# end
-#
-# desc "Run 'subtend' specifications"
-# task :subtend => "spec:setup:subtend" do
-# from_root_dir do
-# sh "bin/specrunner spec/subtend"
-# end
-# end
-
- # Specdiffs to make it easier to see what your changes have affected :)
-# desc 'Run specs and produce a diff against current base'
-# task :diff => 'diff:run'
-#
-# namespace :diff do
-# desc 'Run specs and produce a diff against current base'
-# task :run do
-# from_root_dir do
-# system 'bin/specrunner spec > /tmp/rbs_specdiff'
-# system 'diff -u spec/diffs/base.txt /tmp/rbs_specdiff'
-# system 'rm /tmp/rbs_specdiff'
-# end
-# end
-
-# desc 'Replace the base spec file with a new one'
-# task :replace do
-# from_root_dir do
-# system 'bin/specrunner spec > spec/diffs/base.txt'
-# end
-# end
-# end
-#end
-
-#task :report => 'report:all' # default
-namespace :report do
- desc "Build all reports"
- task :all => [:rspec_errors, :self_hosting_errors]
-
- #desc "Build completeness report"
- #task :completeness do
- # run_report(:completeness)
- #end
-
- desc "Build rspec errors report"
- task :rspec_errors do
- run_report(:rspec_errors)
- end
-
- desc "Build self-hosting errors report"
- task :self_hosting_errors do
- run_report(:self_hosting_errors)
- end
-
- def run_report(name)
- report = "#{ROOT}/bin/reports/#{name}.rb"
- dest = "#{ROOT}/reports/#{name}.html"
- File.open("#{ROOT}/reports/#{name}.html", 'w') do |f|
- f.write `RUBYOPT='' ruby #{report}`
- end
- puts "ruby #{report} > #{dest}"
- end
-end
-

0 comments on commit 8b118bf

Please sign in to comment.