Welcome to mirror list, hosted at ThFree Co, Russian Federation.

setup_builds_storage.rb « support « ci « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cafc8dee9187c5cc23665b1271850918f4b35f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
RSpec.configure do |config|
  def builds_path
    Rails.root.join('tmp/builds_test')
  end

  config.before(:each) do
    FileUtils.mkdir_p(builds_path)
    Ci::Settings.gitlab_ci['builds_path'] = builds_path
  end

  config.after(:suite) do
    Dir.chdir(builds_path) do
      `ls | grep -v .gitkeep | xargs rm -r`
    end
  end
end