Commit 1ca552a6 authored by Luke Redpath's avatar Luke Redpath

Unpack the fixture tarballs on Travis as they are being used.

parent 67a79302
......@@ -83,7 +83,7 @@ namespace :spec do
# For now we don't run the intgration spec, but it should be cleaned up so it can run on Travis.
desc "Run the travis CI specs"
task :travis => :all
task :travis => [:unpack_fixture_tarballs, :all]
desc "Rebuild all the fixture tarballs"
task :rebuild_fixture_tarballs do
......@@ -93,6 +93,17 @@ namespace :spec do
sh "cd #{File.dirname(tarball)} && rm #{basename} && tar -zcf #{basename} #{basename[0..-8]}"
end
end
desc "Unpacks all the fixture tarballs"
task :unpack_fixture_tarballs do
tarballs = FileList['spec/fixtures/**/*.tar.gz']
tarballs.each do |tarball|
basename = File.basename(tarball)
Dir.chdir(File.dirname(tarball)) do
sh "rm -rf #{basename[0..-8]} && tar zxf #{basename}"
end
end
end
end
namespace :examples do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment