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
Léo-Paul Géneau
gitlab-ce
Commits
d696194f
Commit
d696194f
authored
Mar 24, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add illustrations to build statuses
parent
18bce8fc
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
48 additions
and
0 deletions
+48
-0
lib/gitlab/ci/status/canceled.rb
lib/gitlab/ci/status/canceled.rb
+4
-0
lib/gitlab/ci/status/core.rb
lib/gitlab/ci/status/core.rb
+4
-0
lib/gitlab/ci/status/created.rb
lib/gitlab/ci/status/created.rb
+4
-0
lib/gitlab/ci/status/manual.rb
lib/gitlab/ci/status/manual.rb
+4
-0
lib/gitlab/ci/status/pending.rb
lib/gitlab/ci/status/pending.rb
+4
-0
lib/gitlab/ci/status/skipped.rb
lib/gitlab/ci/status/skipped.rb
+4
-0
spec/lib/gitlab/ci/status/build/factory_spec.rb
spec/lib/gitlab/ci/status/build/factory_spec.rb
+4
-0
spec/lib/gitlab/ci/status/canceled_spec.rb
spec/lib/gitlab/ci/status/canceled_spec.rb
+4
-0
spec/lib/gitlab/ci/status/created_spec.rb
spec/lib/gitlab/ci/status/created_spec.rb
+4
-0
spec/lib/gitlab/ci/status/manual_spec.rb
spec/lib/gitlab/ci/status/manual_spec.rb
+4
-0
spec/lib/gitlab/ci/status/pending_spec.rb
spec/lib/gitlab/ci/status/pending_spec.rb
+4
-0
spec/lib/gitlab/ci/status/skipped_spec.rb
spec/lib/gitlab/ci/status/skipped_spec.rb
+4
-0
No files found.
lib/gitlab/ci/status/canceled.rb
View file @
d696194f
...
...
@@ -17,6 +17,10 @@ module Gitlab
def
favicon
'favicon_status_canceled'
end
def
illustration
'canceled-job_empty'
end
end
end
end
...
...
lib/gitlab/ci/status/core.rb
View file @
d696194f
...
...
@@ -22,6 +22,10 @@ module Gitlab
raise
NotImplementedError
end
def
illustration
raise
NotImplementedError
end
def
label
raise
NotImplementedError
end
...
...
lib/gitlab/ci/status/created.rb
View file @
d696194f
...
...
@@ -17,6 +17,10 @@ module Gitlab
def
favicon
'favicon_status_created'
end
def
illustration
'job_not_triggered'
end
end
end
end
...
...
lib/gitlab/ci/status/manual.rb
View file @
d696194f
...
...
@@ -17,6 +17,10 @@ module Gitlab
def
favicon
'favicon_status_manual'
end
def
illustration
'manual_action'
end
end
end
end
...
...
lib/gitlab/ci/status/pending.rb
View file @
d696194f
...
...
@@ -17,6 +17,10 @@ module Gitlab
def
favicon
'favicon_status_pending'
end
def
illustration
'pending_job_empty'
end
end
end
end
...
...
lib/gitlab/ci/status/skipped.rb
View file @
d696194f
...
...
@@ -17,6 +17,10 @@ module Gitlab
def
favicon
'favicon_status_skipped'
end
def
illustration
'skipped-job_empty'
end
end
end
end
...
...
spec/lib/gitlab/ci/status/build/factory_spec.rb
View file @
d696194f
...
...
@@ -115,6 +115,7 @@ describe Gitlab::Ci::Status::Build::Factory do
expect
(
status
.
text
).
to
eq
'canceled'
expect
(
status
.
icon
).
to
eq
'status_canceled'
expect
(
status
.
favicon
).
to
eq
'favicon_status_canceled'
expect
(
status
.
illustration
).
to
eq
'canceled-job_empty'
expect
(
status
.
label
).
to
eq
'canceled'
expect
(
status
).
to
have_details
expect
(
status
).
to
have_action
...
...
@@ -167,6 +168,7 @@ describe Gitlab::Ci::Status::Build::Factory do
expect
(
status
.
text
).
to
eq
'pending'
expect
(
status
.
icon
).
to
eq
'status_pending'
expect
(
status
.
favicon
).
to
eq
'favicon_status_pending'
expect
(
status
.
illustration
).
to
eq
'pending_job_empty'
expect
(
status
.
label
).
to
eq
'pending'
expect
(
status
).
to
have_details
expect
(
status
).
to
have_action
...
...
@@ -192,6 +194,7 @@ describe Gitlab::Ci::Status::Build::Factory do
expect
(
status
.
text
).
to
eq
'skipped'
expect
(
status
.
icon
).
to
eq
'status_skipped'
expect
(
status
.
favicon
).
to
eq
'favicon_status_skipped'
expect
(
status
.
illustration
).
to
eq
'skipped-job_empty'
expect
(
status
.
label
).
to
eq
'skipped'
expect
(
status
).
to
have_details
expect
(
status
).
not_to
have_action
...
...
@@ -221,6 +224,7 @@ describe Gitlab::Ci::Status::Build::Factory do
expect
(
status
.
group
).
to
eq
'manual'
expect
(
status
.
icon
).
to
eq
'status_manual'
expect
(
status
.
favicon
).
to
eq
'favicon_status_manual'
expect
(
status
.
illustration
).
to
eq
'manual_action'
expect
(
status
.
label
).
to
include
'manual play action'
expect
(
status
).
to
have_details
expect
(
status
.
action_path
).
to
include
'play'
...
...
spec/lib/gitlab/ci/status/canceled_spec.rb
View file @
d696194f
...
...
@@ -21,6 +21,10 @@ describe Gitlab::Ci::Status::Canceled do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_canceled'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
eq
'canceled-job_empty'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'canceled'
}
end
...
...
spec/lib/gitlab/ci/status/created_spec.rb
View file @
d696194f
...
...
@@ -21,6 +21,10 @@ describe Gitlab::Ci::Status::Created do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_created'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
eq
'job_not_triggered'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'created'
}
end
...
...
spec/lib/gitlab/ci/status/manual_spec.rb
View file @
d696194f
...
...
@@ -21,6 +21,10 @@ describe Gitlab::Ci::Status::Manual do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_manual'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
eq
'manual_action'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'manual'
}
end
...
...
spec/lib/gitlab/ci/status/pending_spec.rb
View file @
d696194f
...
...
@@ -21,6 +21,10 @@ describe Gitlab::Ci::Status::Pending do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_pending'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
eq
'pending_job_empty'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'pending'
}
end
...
...
spec/lib/gitlab/ci/status/skipped_spec.rb
View file @
d696194f
...
...
@@ -21,6 +21,10 @@ describe Gitlab::Ci::Status::Skipped do
it
{
expect
(
subject
.
favicon
).
to
eq
'favicon_status_skipped'
}
end
describe
'#illustration'
do
it
{
expect
(
subject
.
illustration
).
to
eq
'skipped-job_empty'
}
end
describe
'#group'
do
it
{
expect
(
subject
.
group
).
to
eq
'skipped'
}
end
...
...
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