Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
119757ac
Commit
119757ac
authored
Dec 02, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add scaffold for remaining statuses-related classes
parent
943b3d0e
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
0 deletions
+64
-0
lib/gitlab/ci/status/extended/base.rb
lib/gitlab/ci/status/extended/base.rb
+11
-0
lib/gitlab/ci/status/extended/pipeline/common.rb
lib/gitlab/ci/status/extended/pipeline/common.rb
+24
-0
lib/gitlab/ci/status/extended/pipeline/success_with_warnings.rb
...tlab/ci/status/extended/pipeline/success_with_warnings.rb
+23
-0
lib/gitlab/ci/status/factory.rb
lib/gitlab/ci/status/factory.rb
+6
-0
spec/lib/gitlab/ci/status/extended/base_spec.rb
spec/lib/gitlab/ci/status/extended/base_spec.rb
+0
-0
spec/lib/gitlab/ci/status/extended/pipeline/common_spec.rb
spec/lib/gitlab/ci/status/extended/pipeline/common_spec.rb
+0
-0
spec/lib/gitlab/ci/status/extended/pipeline/success_with_warnings_spec.rb
...ci/status/extended/pipeline/success_with_warnings_spec.rb
+0
-0
spec/lib/gitlab/ci/status/factory_spec.rb
spec/lib/gitlab/ci/status/factory_spec.rb
+0
-0
No files found.
lib/gitlab/ci/status/extended/base.rb
0 → 100644
View file @
119757ac
module
Gitlab::Ci
module
Status
module
Extended
module
Base
def
matches?
(
_subject
)
raise
NotImplementedError
end
end
end
end
end
lib/gitlab/ci/status/extended/pipeline/common.rb
0 → 100644
View file @
119757ac
module
Gitlab::Ci
module
Status
module
Extended
module
Pipeline
module
Common
def
initialize
(
pipeline
)
@pipeline
=
pipeline
end
def
has_details?
true
end
def
details_path
end
def
has_action?
false
end
end
end
end
end
end
lib/gitlab/ci/status/extended/pipeline/success_with_warnings.rb
0 → 100644
View file @
119757ac
module
Gitlab::Ci
module
Status
module
Extended
module
Pipeline
class
SuccessWithWarnings
<
SimpleDelegator
extend
Status
::
Extended
::
Base
def
label
'passed with warnings'
end
def
icon
'icon_status_warning'
end
def
self
.
matches?
(
pipeline
)
pipeline
.
success?
&&
pipeline
.
has_warnings?
end
end
end
end
end
end
lib/gitlab/ci/status/factory.rb
0 → 100644
View file @
119757ac
module
Gitlab::Ci
module
Status
class
Factory
end
end
end
spec/lib/gitlab/ci/status/extended/base_spec.rb
0 → 100644
View file @
119757ac
spec/lib/gitlab/ci/status/extended/pipeline/common_spec.rb
0 → 100644
View file @
119757ac
spec/lib/gitlab/ci/status/extended/pipeline/success_with_warnings_spec.rb
0 → 100644
View file @
119757ac
spec/lib/gitlab/ci/status/factory_spec.rb
0 → 100644
View file @
119757ac
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment