Loading templates/gitlab-ci-bash.yml +4 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
templates/gitlab-ci-bash.yml +4 −1 Original line number Diff line number Diff line Loading @@ -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 Loading