2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2017-08-24 07:01:33 -04:00
|
|
|
factory :project_auto_devops do
|
|
|
|
project
|
2019-10-01 20:06:26 -04:00
|
|
|
enabled { true }
|
|
|
|
deploy_strategy { :continuous }
|
2018-06-07 08:56:48 -04:00
|
|
|
|
2018-10-01 09:03:48 -04:00
|
|
|
trait :continuous_deployment do
|
2019-10-01 20:06:26 -04:00
|
|
|
deploy_strategy { ProjectAutoDevops.deploy_strategies[:continuous] }
|
2018-10-01 09:03:48 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :manual_deployment do
|
2019-10-01 20:06:26 -04:00
|
|
|
deploy_strategy { ProjectAutoDevops.deploy_strategies[:manual] }
|
2018-10-01 09:03:48 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
trait :timed_incremental_deployment do
|
2019-10-01 20:06:26 -04:00
|
|
|
deploy_strategy { ProjectAutoDevops.deploy_strategies[:timed_incremental] }
|
2018-06-07 08:56:48 -04:00
|
|
|
end
|
2018-06-07 14:09:14 -04:00
|
|
|
|
|
|
|
trait :disabled do
|
2019-10-01 20:06:26 -04:00
|
|
|
enabled { false }
|
2018-06-07 14:09:14 -04:00
|
|
|
end
|
2017-08-24 07:01:33 -04:00
|
|
|
end
|
|
|
|
end
|