summaryrefslogtreecommitdiff
path: root/app/models/service.rb
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 /app/models/service.rb
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 'app/models/service.rb')
-rw-r--r--app/models/service.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/service.rb b/app/models/service.rb
index facaaf9b331..3ef4cbead10 100644
--- a/app/models/service.rb
+++ b/app/models/service.rb
@@ -210,7 +210,7 @@ class Service < ActiveRecord::Base
end
def self.available_services_names
- %w[
+ service_names = %w[
asana
assembla
bamboo
@@ -238,6 +238,9 @@ class Service < ActiveRecord::Base
slack
teamcity
]
+ service_names << 'mock_ci' if Rails.env.development?
+
+ service_names.sort_by(&:downcase)
end
def self.build_from_template(project_id, template)