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
a0ed41a5
Commit
a0ed41a5
authored
Aug 15, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for test coverage report badge
parent
dfd91389
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
10 deletions
+37
-10
doc/ci/pipelines.md
doc/ci/pipelines.md
+35
-0
doc/ci/quick_start/README.md
doc/ci/quick_start/README.md
+2
-10
No files found.
doc/ci/pipelines.md
View file @
a0ed41a5
...
@@ -32,6 +32,41 @@ project.
...
@@ -32,6 +32,41 @@ project.
Clicking on a pipeline will show the builds that were run for that pipeline.
Clicking on a pipeline will show the builds that were run for that pipeline.
## Badges
There are build status and test coverage report badges available.
Go to pipeline settings to see available badges and code you can use to embed
badges in the
`README.md`
or your website.
### Build status badge
You can access a build status badge image using following link:
```
http://example.gitlab.com/namespace/project/badges/branch/build.svg
```
### Test coverage report badge
GitLab makes it possible to define the regular expression for coverage report,
that each build log will be matched against. This means that each build in the
pipeline can have the test coverage percentage value defined.
You can access test coverage badge using following link:
```
http://example.gitlab.com/namespace/project/badges/branch/coverage.svg
```
If you would like to get the coverage report from the specific job, you can add
a
`job=coverage_job_name`
parameter to the URL. For example, it is possible to
use following Markdown code to embed the est coverage report into
`README.md`
:
```
markdown
![
coverage
](
http://gitlab.com/gitlab-org/gitlab-ce/badges/master/coverage.svg?job=coverage
)
```
[
builds
]:
#builds
[
builds
]:
#builds
[
jobs
]:
yaml/README.md#jobs
[
jobs
]:
yaml/README.md#jobs
[
stages
]:
yaml/README.md#stages
[
stages
]:
yaml/README.md#stages
...
...
doc/ci/quick_start/README.md
View file @
a0ed41a5
...
@@ -218,21 +218,13 @@ project's settings.
...
@@ -218,21 +218,13 @@ project's settings.
For more information read the
For more information read the
[
Builds emails service documentation
](
../../project_services/builds_emails.md
)
.
[
Builds emails service documentation
](
../../project_services/builds_emails.md
)
.
## Builds badge
You can access a builds badge image using following link:
```
http://example.gitlab.com/namespace/project/badges/branch/build.svg
```
Awesome! You started using CI in GitLab!
## Examples
## Examples
Visit the
[
examples README
][
examples
]
to see a list of examples using GitLab
Visit the
[
examples README
][
examples
]
to see a list of examples using GitLab
CI with various languages.
CI with various languages.
Awesome! You started using CI in GitLab!
[
runner-install
]:
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/tree/master#install-gitlab-runner
[
runner-install
]:
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/tree/master#install-gitlab-runner
[
blog-ci
]:
https://about.gitlab.com/2015/05/06/why-were-replacing-gitlab-ci-jobs-with-gitlab-ci-dot-yml/
[
blog-ci
]:
https://about.gitlab.com/2015/05/06/why-were-replacing-gitlab-ci-jobs-with-gitlab-ci-dot-yml/
[
examples
]:
../examples/README.md
[
examples
]:
../examples/README.md
...
...
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