Commit 427880b0 authored by Daniel Eggert's avatar Daniel Eggert
Browse files

Update .gitlab-ci.yml

parent 0f92ef59
...@@ -45,7 +45,7 @@ pages: ...@@ -45,7 +45,7 @@ pages:
# [1] (xpath) extract the line-rate attribute out of the xml file, uses xpath, so 'libxml-xpath-perl' has to be installed on the runner # [1] (xpath) extract the line-rate attribute out of the xml file, uses xpath, so 'libxml-xpath-perl' has to be installed on the runner
# [2] (grep) get rid of the attribute text so only the actual number remains # [2] (grep) get rid of the attribute text so only the actual number remains
# [3] (awk) multiply the value (0..1) to get the need percent value # [3] (awk) multiply the value (0..1) to get the need percent value
- "xpath -q -e '/coverage/@line-rate' usgs-api/target/site/cobertura/coverage.xml | grep -o '[[:digit:]]\.[[:digit:]]\{1,\}' | awk '{print "Coverage: " $0*100}'" - "xpath -q -e '/coverage/@line-rate' usgs-api/target/site/cobertura/coverage.xml | grep -o '[[:digit:]]\.[[:digit:]]\{1,\}' | awk '{print \"Coverage: \" $0*100}'"
- mv usgs-api/target/site/cobertura/ public/ - mv usgs-api/target/site/cobertura/ public/
coverage: '/Coverage: \d+\.\d+/' coverage: '/Coverage: \d+\.\d+/'
artifacts: artifacts:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment