gitlabhq/db/fixtures/test/001_repo.rb
2011-10-09 22:55:06 +03:00

12 lines
313 B
Ruby

# Create dir for test repo
repo_dir = File.join(Rails.root, "tmp", "tests")
Dir.mkdir(repo_dir) unless File.exists?(repo_dir)
`cp spec/seed_project.tar.gz tmp/tests/`
Dir.chdir(repo_dir)
`tar -xf seed_project.tar.gz`
3.times do |i|
`cp -r legit/ legit_#{i}/`
puts "Unpacked seed repo - tmp/tests/legit_#{i}"
end