@@ -286,24 +286,11 @@ build outputs. Setting this up globally will make all the jobs to use this
...
@@ -286,24 +286,11 @@ build outputs. Setting this up globally will make all the jobs to use this
setting for output filtering and extracting the coverage information from your
setting for output filtering and extracting the coverage information from your
builds.
builds.
#### coverage:output_filter
Regular expressions are used by default. So using surrounding `/` is optional, given it'll always be read as a regular expression. Don't forget to escape special characters whenever you want to match them in the regular expression.
For now, there is only the `output_filter` directive expected to be inside the
`coverage` entry. And it is expected to be a regular expression.
So, in the end, you're going to have something like the following:
A simple example:
```yaml
```yaml
coverage:
coverage:\(\d+\.\d+\) covered\.
output_filter:/\(\d+\.\d+\) covered\./
```
It's worth to keep in mind that the surrounding `/` is optional. So, the above
example is the same as the following:
```yaml
coverage:
output_filter:\(\d+\.\d+\) covered\.
```
```
## Jobs
## Jobs
...
@@ -347,7 +334,6 @@ job_name:
...
@@ -347,7 +334,6 @@ job_name:
| before_script | no | Override a set of commands that are executed before build |
| before_script | no | Override a set of commands that are executed before build |
| after_script | no | Override a set of commands that are executed after build |
| after_script | no | Override a set of commands that are executed after build |
| environment | no | Defines a name of environment to which deployment is done by this build |
| environment | no | Defines a name of environment to which deployment is done by this build |
| environment | no | Defines a name of environment to which deployment is done by this build |
| coverage | no | Define coverage settings for a given job |
| coverage | no | Define coverage settings for a given job |
### script
### script
...
@@ -1032,17 +1018,15 @@ been defined in the global level. A quick example of one overwritting the
...
@@ -1032,17 +1018,15 @@ been defined in the global level. A quick example of one overwritting the
other would be:
other would be:
```yaml
```yaml
coverage:
coverage:\(\d+\.\d+\) covered\.
output_filter:/\(\d+\.\d+\) covered\./
job1:
job1:
coverage:
coverage:Code coverage:\d+\.\d+
output_filter:/Code coverage:\d+\.\d+/
```
```
In the example above, considering the context of the job `job1`, the coverage
In the example above, considering the context of the job `job1`, the coverage
regex that would be used is `/Code coverage: \d+\.\d+/` instead of
regex that would be used is `Code coverage: \d+\.\d+` instead of