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
Jérome Perrin
gitlab-ce
Commits
0c7168b9
Commit
0c7168b9
authored
Dec 02, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add information about badge test to core statuses
parent
119757ac
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
60 additions
and
0 deletions
+60
-0
lib/gitlab/ci/status/core/canceled.rb
lib/gitlab/ci/status/core/canceled.rb
+4
-0
lib/gitlab/ci/status/core/created.rb
lib/gitlab/ci/status/core/created.rb
+4
-0
lib/gitlab/ci/status/core/failed.rb
lib/gitlab/ci/status/core/failed.rb
+4
-0
lib/gitlab/ci/status/core/pending.rb
lib/gitlab/ci/status/core/pending.rb
+4
-0
lib/gitlab/ci/status/core/running.rb
lib/gitlab/ci/status/core/running.rb
+4
-0
lib/gitlab/ci/status/core/skipped.rb
lib/gitlab/ci/status/core/skipped.rb
+4
-0
lib/gitlab/ci/status/core/success.rb
lib/gitlab/ci/status/core/success.rb
+4
-0
lib/gitlab/ci/status/extended/pipeline/success_with_warnings.rb
...tlab/ci/status/extended/pipeline/success_with_warnings.rb
+4
-0
spec/lib/gitlab/ci/status/core/canceled_spec.rb
spec/lib/gitlab/ci/status/core/canceled_spec.rb
+4
-0
spec/lib/gitlab/ci/status/core/created_spec.rb
spec/lib/gitlab/ci/status/core/created_spec.rb
+4
-0
spec/lib/gitlab/ci/status/core/failed_spec.rb
spec/lib/gitlab/ci/status/core/failed_spec.rb
+4
-0
spec/lib/gitlab/ci/status/core/pending_spec.rb
spec/lib/gitlab/ci/status/core/pending_spec.rb
+4
-0
spec/lib/gitlab/ci/status/core/running_spec.rb
spec/lib/gitlab/ci/status/core/running_spec.rb
+4
-0
spec/lib/gitlab/ci/status/core/skipped_spec.rb
spec/lib/gitlab/ci/status/core/skipped_spec.rb
+4
-0
spec/lib/gitlab/ci/status/core/success_spec.rb
spec/lib/gitlab/ci/status/core/success_spec.rb
+4
-0
No files found.
lib/gitlab/ci/status/core/canceled.rb
View file @
0c7168b9
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
module
Status
module
Status
module
Core
module
Core
class
Canceled
<
Core
::
Base
class
Canceled
<
Core
::
Base
def
text
'canceled'
end
def
label
def
label
'canceled'
'canceled'
end
end
...
...
lib/gitlab/ci/status/core/created.rb
View file @
0c7168b9
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
module
Status
module
Status
module
Core
module
Core
class
Created
<
Core
::
Base
class
Created
<
Core
::
Base
def
text
'created'
end
def
label
def
label
'created'
'created'
end
end
...
...
lib/gitlab/ci/status/core/failed.rb
View file @
0c7168b9
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
module
Status
module
Status
module
Core
module
Core
class
Failed
<
Core
::
Base
class
Failed
<
Core
::
Base
def
text
'failed'
end
def
label
def
label
'failed'
'failed'
end
end
...
...
lib/gitlab/ci/status/core/pending.rb
View file @
0c7168b9
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
module
Status
module
Status
module
Core
module
Core
class
Pending
<
Core
::
Base
class
Pending
<
Core
::
Base
def
text
'pending'
end
def
label
def
label
'pending'
'pending'
end
end
...
...
lib/gitlab/ci/status/core/running.rb
View file @
0c7168b9
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
module
Status
module
Status
module
Core
module
Core
class
Running
<
Core
::
Base
class
Running
<
Core
::
Base
def
text
'running'
end
def
label
def
label
'running'
'running'
end
end
...
...
lib/gitlab/ci/status/core/skipped.rb
View file @
0c7168b9
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
module
Status
module
Status
module
Core
module
Core
class
Skipped
<
Core
::
Base
class
Skipped
<
Core
::
Base
def
text
'skipped'
end
def
label
def
label
'skipped'
'skipped'
end
end
...
...
lib/gitlab/ci/status/core/success.rb
View file @
0c7168b9
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
...
@@ -2,6 +2,10 @@ module Gitlab::Ci
module
Status
module
Status
module
Core
module
Core
class
Success
<
Core
::
Base
class
Success
<
Core
::
Base
def
text
'passed'
end
def
label
def
label
'passed'
'passed'
end
end
...
...
lib/gitlab/ci/status/extended/pipeline/success_with_warnings.rb
View file @
0c7168b9
...
@@ -5,6 +5,10 @@ module Gitlab::Ci
...
@@ -5,6 +5,10 @@ module Gitlab::Ci
class
SuccessWithWarnings
<
SimpleDelegator
class
SuccessWithWarnings
<
SimpleDelegator
extend
Status
::
Extended
::
Base
extend
Status
::
Extended
::
Base
def
text
'passed'
end
def
label
def
label
'passed with warnings'
'passed with warnings'
end
end
...
...
spec/lib/gitlab/ci/status/core/canceled_spec.rb
View file @
0c7168b9
...
@@ -3,6 +3,10 @@ require 'spec_helper'
...
@@ -3,6 +3,10 @@ require 'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Core
::
Canceled
do
describe
Gitlab
::
Ci
::
Status
::
Core
::
Canceled
do
subject
{
described_class
.
new
(
double
(
'subject'
))
}
subject
{
described_class
.
new
(
double
(
'subject'
))
}
describe
'#text'
do
it
{
expect
(
subject
.
label
).
to
eq
'canceled'
}
end
describe
'#label'
do
describe
'#label'
do
it
{
expect
(
subject
.
label
).
to
eq
'canceled'
}
it
{
expect
(
subject
.
label
).
to
eq
'canceled'
}
end
end
...
...
spec/lib/gitlab/ci/status/core/created_spec.rb
View file @
0c7168b9
...
@@ -3,6 +3,10 @@ require 'spec_helper'
...
@@ -3,6 +3,10 @@ require 'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Core
::
Created
do
describe
Gitlab
::
Ci
::
Status
::
Core
::
Created
do
subject
{
described_class
.
new
(
double
(
'subject'
))
}
subject
{
described_class
.
new
(
double
(
'subject'
))
}
describe
'#text'
do
it
{
expect
(
subject
.
label
).
to
eq
'created'
}
end
describe
'#label'
do
describe
'#label'
do
it
{
expect
(
subject
.
label
).
to
eq
'created'
}
it
{
expect
(
subject
.
label
).
to
eq
'created'
}
end
end
...
...
spec/lib/gitlab/ci/status/core/failed_spec.rb
View file @
0c7168b9
...
@@ -3,6 +3,10 @@ require 'spec_helper'
...
@@ -3,6 +3,10 @@ require 'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Core
::
Failed
do
describe
Gitlab
::
Ci
::
Status
::
Core
::
Failed
do
subject
{
described_class
.
new
(
double
(
'subject'
))
}
subject
{
described_class
.
new
(
double
(
'subject'
))
}
describe
'#text'
do
it
{
expect
(
subject
.
label
).
to
eq
'failed'
}
end
describe
'#label'
do
describe
'#label'
do
it
{
expect
(
subject
.
label
).
to
eq
'failed'
}
it
{
expect
(
subject
.
label
).
to
eq
'failed'
}
end
end
...
...
spec/lib/gitlab/ci/status/core/pending_spec.rb
View file @
0c7168b9
...
@@ -3,6 +3,10 @@ require 'spec_helper'
...
@@ -3,6 +3,10 @@ require 'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Core
::
Pending
do
describe
Gitlab
::
Ci
::
Status
::
Core
::
Pending
do
subject
{
described_class
.
new
(
double
(
'subject'
))
}
subject
{
described_class
.
new
(
double
(
'subject'
))
}
describe
'#text'
do
it
{
expect
(
subject
.
label
).
to
eq
'pending'
}
end
describe
'#label'
do
describe
'#label'
do
it
{
expect
(
subject
.
label
).
to
eq
'pending'
}
it
{
expect
(
subject
.
label
).
to
eq
'pending'
}
end
end
...
...
spec/lib/gitlab/ci/status/core/running_spec.rb
View file @
0c7168b9
...
@@ -3,6 +3,10 @@ require 'spec_helper'
...
@@ -3,6 +3,10 @@ require 'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Core
::
Running
do
describe
Gitlab
::
Ci
::
Status
::
Core
::
Running
do
subject
{
described_class
.
new
(
double
(
'subject'
))
}
subject
{
described_class
.
new
(
double
(
'subject'
))
}
describe
'#text'
do
it
{
expect
(
subject
.
label
).
to
eq
'running'
}
end
describe
'#label'
do
describe
'#label'
do
it
{
expect
(
subject
.
label
).
to
eq
'running'
}
it
{
expect
(
subject
.
label
).
to
eq
'running'
}
end
end
...
...
spec/lib/gitlab/ci/status/core/skipped_spec.rb
View file @
0c7168b9
...
@@ -3,6 +3,10 @@ require 'spec_helper'
...
@@ -3,6 +3,10 @@ require 'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Core
::
Skipped
do
describe
Gitlab
::
Ci
::
Status
::
Core
::
Skipped
do
subject
{
described_class
.
new
(
double
(
'subject'
))
}
subject
{
described_class
.
new
(
double
(
'subject'
))
}
describe
'#text'
do
it
{
expect
(
subject
.
label
).
to
eq
'skipped'
}
end
describe
'#label'
do
describe
'#label'
do
it
{
expect
(
subject
.
label
).
to
eq
'skipped'
}
it
{
expect
(
subject
.
label
).
to
eq
'skipped'
}
end
end
...
...
spec/lib/gitlab/ci/status/core/success_spec.rb
View file @
0c7168b9
...
@@ -3,6 +3,10 @@ require 'spec_helper'
...
@@ -3,6 +3,10 @@ require 'spec_helper'
describe
Gitlab
::
Ci
::
Status
::
Core
::
Success
do
describe
Gitlab
::
Ci
::
Status
::
Core
::
Success
do
subject
{
described_class
.
new
(
double
(
'subject'
))
}
subject
{
described_class
.
new
(
double
(
'subject'
))
}
describe
'#text'
do
it
{
expect
(
subject
.
label
).
to
eq
'passed'
}
end
describe
'#label'
do
describe
'#label'
do
it
{
expect
(
subject
.
label
).
to
eq
'passed'
}
it
{
expect
(
subject
.
label
).
to
eq
'passed'
}
end
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