Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59cd9a81 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

chore: only execute release tests

parent 5a6718a6
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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