gitlab-org--gitlab-foss/spec/support/setup_builds_storage.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
374 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2015-08-26 01:42:46 +00:00
RSpec.configure do |config|
def builds_path
Rails.root.join('tmp/tests/builds')
2015-08-26 01:42:46 +00:00
end
config.before(:suite) do
Settings.gitlab_ci['builds_path'] = builds_path
end
config.before(:all) do
2015-08-26 01:42:46 +00:00
FileUtils.mkdir_p(builds_path)
end
2018-12-11 06:29:58 +00:00
config.before do
FileUtils.rm_rf(builds_path)
FileUtils.mkdir_p(builds_path)
2015-08-26 01:42:46 +00:00
end
end