ci: enforce minimum 85% code coverage in gitlab-ci pest test job
This commit is contained in:
parent
c3a7277ad1
commit
9b6fbcceda
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ pest:
|
|||
script:
|
||||
- rm -f "$JUNIT_REPORT" "$TEXT_REPORT" "$COVERAGE_REPORT"
|
||||
- touch "$TEXT_REPORT"
|
||||
- bash -c 'composer run-script test:coverage 2>&1 | tee "$TEXT_REPORT"; status=${PIPESTATUS[0]}; exit $status'
|
||||
- bash -c 'composer run-script test:coverage -- --min=85 2>&1 | tee "$TEXT_REPORT"; status=${PIPESTATUS[0]}; exit $status'
|
||||
- cat "$TEXT_REPORT"
|
||||
- if [ -f "$COVERAGE_REPORT" ]; then echo "Coverage report generated $COVERAGE_REPORT"; else echo "No coverage report found"; fi
|
||||
artifacts:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue