Commit 7278aa17 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/coverage-regex' into 'master'

fix(coverage): use a coverage regex able to capture the 2 possible output logs

See merge request to-be-continuous/bash!44
parents 3d294d3f 0a345cce
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -569,7 +569,10 @@ bash-bats:
    - install_bats_libs
    - mkdir reports
    - run_bats --report-formatter junit --output reports $BASH_BATS_OPTS $BASH_BATS_TESTS
  coverage: '/LOC \((\d+\.?\d*)%\) covered$/'
  # the coverage regex captures 2 possible output logs (depending on the formatter)
  # 1: ... LOC (27.27%) covered
  # 2: Line Coverage: 27.27% (6 / 22)
  coverage: '/(?:LOC \(|Line Coverage: )(\d+\.?\d*)%/'
  artifacts:
    name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
    expire_in: 1 day