Skip to content

Commit

Permalink
Updated exclusion list for CI specs.
Browse files Browse the repository at this point in the history
Updated rake spec:ci task.
Changed ci spec run action to execute all specs in one process.
Added guard on file specs to prevent compilation exception.
  • Loading branch information
brixen committed Aug 23, 2007
1 parent c3b61b2 commit 4ef0b9f
Show file tree
Hide file tree
Showing 4 changed files with 895 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -89,7 +89,7 @@ namespace :spec do
task :ci do
target = ENV['SPEC_TARGET'] || 'rbx'
system %(shotgun/rubinius -e 'puts "rbx build: \#{Rubinius::BUILDREV}"') if target == 'rbx'
sh "bin/mspec -t #{target} -f ci -x spec/reports/ci-excludes.txt spec"
sh "bin/ci -t #{target}"
end

spec_targets = %w(compiler core language library parser rubinius)
Expand Down
8 changes: 3 additions & 5 deletions bin/ci
Expand Up @@ -72,8 +72,8 @@ end
case action
when :create
cmd = <<-EOC
bin/mspec -t #{target} -x spec/reports/critical-excludes.txt -f ci %s
> spec/reports/ci-excludes.txt
bin/mspec -t #{target} -x spec/reports/critical-excludes.txt -f ci %s \
>> spec/reports/ci-excludes.txt \
2> /dev/null
EOC
system("rm -f spec/reports/ci-excludes.txt")
Expand All @@ -82,9 +82,7 @@ EOC
end
system("cat spec/reports/critical-excludes.txt >> spec/reports/ci-excludes.txt")
when :run
files.each do |file|
system("bin/mspec -t #{target} -x spec/reports/ci-excludes.txt -f #{format} #{file} 2> /dev/null")
end
system("bin/mspec -t #{target} -x spec/reports/ci-excludes.txt -f #{format} #{files.join(' ')} 2> /dev/null")
when :invert
files.each do |file|
system("bin/mspec -t #{target} -e spec/reports/ci-excludes.txt -f #{format} #{file}")
Expand Down
4 changes: 3 additions & 1 deletion spec/core/file_spec.rb
@@ -1,5 +1,7 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'pathname'
failure :rbx do
require 'pathname'
end

# class methods
# atime, basename, blockdev?, chardev?, chmod, chown, ctime, delete,
Expand Down

0 comments on commit 4ef0b9f

Please sign in to comment.