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

pipelines.rb « sources « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 93d35097eac13b4ec04221ae6df52abc15d0cace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

FactoryBot.define do
  factory :ci_sources_pipeline, class: 'Ci::Sources::Pipeline' do
    after(:build) do |source|
      source.project ||= source.pipeline.project
      source.source_pipeline ||= source.source_job.pipeline
      source.source_project ||= source.source_pipeline.project
    end

    source_job factory: :ci_build

    pipeline factory: :ci_empty_pipeline
  end
end