BigW Consortium Gitlab

setup_builds_storage.rb 350 Bytes
Newer Older
1 2
RSpec.configure do |config|
  def builds_path
3
    Rails.root.join('tmp/tests/builds')
4 5
  end

6 7 8 9
  config.before(:suite) do
    Settings.gitlab_ci['builds_path'] = builds_path
  end

10
  config.before(:all) do
11 12 13
    FileUtils.mkdir_p(builds_path)
  end

14
  config.before(:each) do
15
    FileUtils.rm_rf(builds_path)
16
    FileUtils.mkdir_p(builds_path)
17 18
  end
end