diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dba8308fb6c924dbd1176545600cbfa28bd0d5a7..9bc705eaa3b3cae7a088843d7445775474d9fdbf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,20 +45,20 @@ test: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' when: always script: - - ./gradlew test jacocoDebugReport -PtestAccountName="$testAccountName" -PtestAccountPwd="$testAccountPwd" -PtestServerUrl="$testServerUrl" - - python3 scripts/print_instruction_coverage.py app/build/reports/jacoco/jacocoDebugReport/jacocoDebugReport.xml + - ./gradlew testReleaseUnitTest jacocoReleaseReport -PtestAccountName="$testAccountName" -PtestAccountPwd="$testAccountPwd" -PtestServerUrl="$testServerUrl" + - python3 scripts/print_instruction_coverage.py app/build/reports/jacoco/jacocoReleaseReport/jacocoReleaseReport.xml coverage: '/Total.*?([0-9]{1,3})%/' artifacts: when: always paths: - app/build/test-results/*/TEST-*.xml - app/build/reports/tests/* - - app/build/reports/jacoco/jacocoDebugReport/jacocoDebugReport.xml + - app/build/reports/jacoco/jacocoReleaseReport/jacocoReleaseReport.xml reports: junit: app/build/test-results/*/TEST-*.xml coverage_report: coverage_format: jacoco - path: app/build/reports/jacoco/jacocoDebugReport/jacocoDebugReport.xml + path: app/build/reports/jacoco/jacocoReleaseReport/jacocoReleaseReport.xml # Default lint configuration for debug builds # Manual as we don't want to run them generally for debug builds