Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-02-15 04:52:44 +0300
committerEric Eastwood <contact@ericeastwood.com>2017-02-25 05:01:36 +0300
commit1c85d86d19d6cb0cb0da82ea062be3ccd351ffef (patch)
treea9e3413db331ecfdb492752b74f61a95c8f78fdd /app/models/service.rb
parent7d15f36be6cdefcf95a96bf4cbb425baceaf2488 (diff)
Add MockCiService integration
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)