summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-02-14 19:52:44 -0600
committerEric Eastwood <contact@ericeastwood.com>2017-02-24 20:01:36 -0600
commit1c85d86d19d6cb0cb0da82ea062be3ccd351ffef (patch)
treea9e3413db331ecfdb492752b74f61a95c8f78fdd /lib
parent7d15f36be6cdefcf95a96bf4cbb425baceaf2488 (diff)
downloadgitlab-ce-1c85d86d19d6cb0cb0da82ea062be3ccd351ffef.tar.gz
Add MockCiService integrationmock-ci-service
MR: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9250/ See https://gitlab.com/madlittlemods/gl-mock-ci-service
Diffstat (limited to 'lib')
-rw-r--r--lib/api/services.rb15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/api/services.rb b/lib/api/services.rb
index 1456fe4688b..ad856115485 100644
--- a/lib/api/services.rb
+++ b/lib/api/services.rb
@@ -563,7 +563,20 @@ module API
SlackService,
MattermostService,
TeamcityService,
- ].freeze
+ ]
+
+ if Rails.env.development?
+ services['mock-ci'] = [
+ {
+ required: true,
+ name: :mock_service_url,
+ type: String,
+ desc: 'URL to the mock service'
+ }
+ ]
+
+ service_classes << MockCiService
+ end
trigger_services = {
'mattermost-slash-commands' => [