2015-10-24 18:46:33 +05:30
|
|
|
FactoryGirl.define do
|
|
|
|
factory :commit_status, class: CommitStatus do
|
|
|
|
name 'default'
|
|
|
|
status 'success'
|
|
|
|
description 'commit status'
|
2016-06-16 23:09:34 +05:30
|
|
|
pipeline factory: :ci_pipeline_with_one_job
|
2016-02-05 20:25:01 +05:30
|
|
|
started_at 'Tue, 26 Jan 2016 08:21:42 +0100'
|
|
|
|
finished_at 'Tue, 26 Jan 2016 08:23:42 +0100'
|
|
|
|
|
|
|
|
after(:build) do |build, evaluator|
|
2016-06-16 23:09:34 +05:30
|
|
|
build.project = build.pipeline.project
|
2016-02-05 20:25:01 +05:30
|
|
|
end
|
2015-10-24 18:46:33 +05:30
|
|
|
|
|
|
|
factory :generic_commit_status, class: GenericCommitStatus do
|
|
|
|
name 'generic'
|
|
|
|
description 'external commit status'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|