Fixes for RunCodeRun tests.

This commit is contained in:
Chris Eppstein 2009-02-12 23:49:29 -08:00
parent f5c0edf710
commit e15edbe4d5

View File

@ -1,3 +1,15 @@
if ENV['RUN_CODE_RUN']
# We need to checkout edge haml for the run>code>run test environment.
if File.directory?("haml")
Dir.chdir("haml") do
sh "git", "pull"
end
else
sh "git", "clone", "git://github.com/nex3/haml.git"
end
$LOAD_PATH.unshift "haml/lib"
end
require 'rubygems' require 'rubygems'
require 'rake' require 'rake'
require 'lib/compass' require 'lib/compass'
@ -11,6 +23,7 @@ require 'fileutils'
Rake::TestTask.new :run_tests do |t| Rake::TestTask.new :run_tests do |t|
t.libs << 'lib' t.libs << 'lib'
t.libs << 'haml/lib' if ENV["RUN_CODE_RUN"]
test_files = FileList['test/**/*_test.rb'] test_files = FileList['test/**/*_test.rb']
test_files.exclude('test/rails/*', 'test/haml/*') test_files.exclude('test/rails/*', 'test/haml/*')
t.test_files = test_files t.test_files = test_files
@ -100,7 +113,7 @@ end
namespace :git do namespace :git do
desc "Perform normal operations required for pushing to github." desc "Perform normal operations required for pushing to github."
task :push => [:manifest, :gem] do task :push => [:manifest, :gem] do
sh "git", "add", "Manifest", "compass.gemspec" sh "git", "add", "Manifest", "compass.gemspec", "VERSION"
sh "git", "commit", "-m", "Updated Manifest and gemspec." sh "git", "commit", "-m", "Updated Manifest and gemspec."
sh "git", "push", "origin", "master" sh "git", "push", "origin", "master"
end end