diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-03 12:08:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-03 12:08:43 +0300 |
commit | 6be8ed5a9529d37f1512549f62db1e44961a4fc0 (patch) | |
tree | 3c7eb8f12c921666ec6afa7b07276b0db2bf65a1 /spec/factories | |
parent | b646822e5253cfa239728ed0d8b96cb584fc96c1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/builds.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/ci/builds.rb b/spec/factories/ci/builds.rb index 645c519aca2..97ddbf21b99 100644 --- a/spec/factories/ci/builds.rb +++ b/spec/factories/ci/builds.rb @@ -33,6 +33,18 @@ FactoryBot.define do name { generate(:job_name) } end + trait :matrix do + sequence(:name) { |n| "job: [#{n}]" } + options do + { + parallel: { + total: 2, + matrix: [{ ID: %w[1 2] }] + } + } + end + end + trait :dependent do scheduling_type { 'dag' } |