summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-01 16:44:07 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-10-01 16:44:07 +0300
commita317ac2fd11f5c6323af67b0c36911ed0c2bfbca (patch)
tree644ef2f240e3f075094329ca9a91c0dede4e2c8c /app/models/project.rb
parentffd1285fc1882e29de9ba2815d11fea082237821 (diff)
downloadgitlab-ci-a317ac2fd11f5c6323af67b0c36911ed0c2bfbca.tar.gz
Implement parsing and set coverage after build finished
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index e482802..7ea0544 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -26,7 +26,7 @@ class Project < ActiveRecord::Base
attr_accessible :name, :path, :scripts, :timeout, :token, :timeout_in_minutes,
:default_ref, :gitlab_url, :always_build, :polling_interval,
:public, :ssh_url_to_repo, :gitlab_id, :allow_git_fetch, :skip_refs,
- :email_recipients, :email_add_committer, :email_only_broken_builds
+ :email_recipients, :email_add_committer, :email_only_broken_builds, :coverage_regex
has_many :builds, dependent: :destroy
has_many :runner_projects, dependent: :destroy
@@ -183,4 +183,8 @@ ls -la
false
end
end
+
+ def coverage_enabled?
+ coverage_regex.present?
+ end
end