Commit 01f588ed authored by Grzegorz Bizon's avatar Grzegorz Bizon

Remove entire test files directory for test builds

parent d917ac0f
......@@ -3,17 +3,15 @@ RSpec.configure do |config|
Rails.root.join('tmp/tests/builds')
end
config.before(:suite) do
Settings.gitlab_ci['builds_path'] = builds_path
end
config.before(:each) do
FileUtils.mkdir_p(builds_path)
FileUtils.touch(File.join(builds_path, ".gitkeep"))
Settings.gitlab_ci['builds_path'] = builds_path
end
config.after(:each) do
Dir[File.join(builds_path, '*')].each do |path|
next if File.basename(path) == '.gitkeep'
FileUtils.rm_rf(path)
end
FileUtils.rm_rf(builds_path)
end
end
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