From c0070e6c237ee52deaae8c9251e16ad333532227 Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Thu, 8 May 2008 22:14:46 -0700 Subject: [PATCH] Added spec:full task that includes stdlib specs in CI. --- Rakefile | 9 ++++++--- rakelib/rubinius.rb | 8 ++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index caf0c1ea0..344c5e1bf 100644 --- a/Rakefile +++ b/Rakefile @@ -291,10 +291,13 @@ namespace :spec do desc "Run continuous integration examples" task :ci => :build do clear_compiler + sh "bin/mspec ci -t #{spec_target}" + end - target = ENV['SPEC_TARGET'] || 'rubinius' - system %(shotgun/rubinius -e 'puts "rubinius build: \#{Rubinius::BUILDREV}"') if target == 'rubinius' - sh "bin/mspec ci -t #{target}" + desc "Run continuous integration examples including stdlib" + task :full => :build do + clear_compiler + sh "bin/mspec ci -t #{spec_target} -B full.mspec" end spec_targets = %w(compiler core language library parser rubinius) diff --git a/rakelib/rubinius.rb b/rakelib/rubinius.rb index b2b9ec491..9df75e8e5 100644 --- a/rakelib/rubinius.rb +++ b/rakelib/rubinius.rb @@ -25,6 +25,14 @@ def clear_compiler ENV.delete 'RBX_PLATFORM' end +def spec_target + target = ENV['SPEC_TARGET'] || 'rubinius' + if target == 'rubinius' + system %(shotgun/rubinius -e 'puts "rubinius build: \#{Rubinius::BUILDREV}"') + end + target +end + def make(args = nil) if RUBY_PLATFORM =~ /bsd|solaris/ gmake = 'gmake' -- 2.11.4.GIT