diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-12-10 16:25:49 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-12-12 12:34:17 +0300 |
commit | 320b6d965e59a0d732f516c6d821af7de60e8477 (patch) | |
tree | 25a9b85441fa19863ceeccd79854cb8429fb9fdb /spec/factories | |
parent | f6d8fb6e46c5b966c04647d826ef43c018c5303b (diff) |
Add basic implementation of CI/CD bridge job
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/bridge.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/factories/ci/bridge.rb b/spec/factories/ci/bridge.rb new file mode 100644 index 00000000000..5f83b80ad7b --- /dev/null +++ b/spec/factories/ci/bridge.rb @@ -0,0 +1,17 @@ +FactoryBot.define do + factory :ci_bridge, class: Ci::Bridge do + name ' bridge' + stage 'test' + stage_idx 0 + ref 'master' + tag false + created_at 'Di 29. Okt 09:50:00 CET 2013' + status :success + + pipeline factory: :ci_pipeline + + after(:build) do |bridge, evaluator| + bridge.project ||= bridge.pipeline.project + end + end +end |