diff options
author | Leandro Camargo <leandroico@gmail.com> | 2016-11-19 22:48:02 -0200 |
---|---|---|
committer | Leandro Camargo <leandroico@gmail.com> | 2017-01-25 01:07:43 -0200 |
commit | d0afc500e30ad0fe334d6dc16dd1766d8f6c523a (patch) | |
tree | 07b4b869dc98ddcc88a1c765ca046bd0f6a4826e /lib/ci | |
parent | 646b9c54d043edf17924e82d8e80a56e18d14ce4 (diff) | |
download | gitlab-ce-d0afc500e30ad0fe334d6dc16dd1766d8f6c523a.tar.gz |
Change expected `coverage` structure for CI configuration YAML file
Instead of using:
`coverage: /\(\d+.\d+%\) covered/`
This structure must be used now:
```
coverage:
output_filter: /\(\d+.\d+%\) covered/`
```
The surrounding '/' is optional.
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index 649ee4d018b..02944e0385a 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -61,7 +61,7 @@ module Ci allow_failure: job[:allow_failure] || false, when: job[:when] || 'on_success', environment: job[:environment_name], - coverage_regex: job[:coverage], + coverage_regex: job[:coverage][:output_filter], yaml_variables: yaml_variables(name), options: { image: job[:image], |