fix #929 : cd
in Rakefile in a cross-platform way
This commit is contained in:
parent
d728df12cf
commit
7e9ff77c1d
6
Rakefile
6
Rakefile
|
@ -76,21 +76,21 @@ end
|
||||||
desc "Generate documentation for all middleman gems"
|
desc "Generate documentation for all middleman gems"
|
||||||
task :doc do
|
task :doc do
|
||||||
GEM_PATHS.each do |g|
|
GEM_PATHS.each do |g|
|
||||||
sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S rake yard"
|
Dir.chdir("#{File.join(ROOT, g)}") { sh "#{Gem.ruby} -S rake yard" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Run tests for all middleman gems"
|
desc "Run tests for all middleman gems"
|
||||||
task :test do
|
task :test do
|
||||||
GEM_PATHS.each do |g|
|
GEM_PATHS.each do |g|
|
||||||
sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S rake test"
|
Dir.chdir("#{File.join(ROOT, g)}") { sh "#{Gem.ruby} -S rake test" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Run specs for all middleman gems"
|
desc "Run specs for all middleman gems"
|
||||||
task :spec do
|
task :spec do
|
||||||
GEM_PATHS.each do |g|
|
GEM_PATHS.each do |g|
|
||||||
sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S rake spec"
|
Dir.chdir("#{File.join(ROOT, g)}") { sh "#{Gem.ruby} -S rake spec" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue