summaryrefslogtreecommitdiffstats
path: root/coin/instructions/cmake_module_lcov_code_coverage.yaml
blob: a8c63e3cc042d3df3c8df1518027fbbf5e5d0fc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
type: Group
instructions:
  - !include "{{qt/qtbase}}/coin_module_test_template_common.yaml"
  - type: ChangeDirectory
    directory: "{{.SourceDir}}_standalone_tests"
  - type: EnvironmentVariable
    variableName: CMAKE_BUILD_TIMEOUT
    variableValue: "6000"
    enable_if:
      condition: runtime
      env_var: CMAKE_BUILD_TIMEOUT
      equals_value: null
  - type: EnvironmentVariable
    variableName: CMAKE_BUILD_OUTPUT_TIMEOUT
    variableValue: "1200"
    enable_if:
      condition: runtime
      env_var: CMAKE_BUILD_OUTPUT_TIMEOUT
      equals_value: null
  - type: ExecuteCommand
    command: "{{.Env.CONFIGURE_ENV_PREFIX}} ninja check_coverage"
    executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
    ignoreExitCode: false
    maxTimeInSeconds: 10800
    maxTimeBetweenOutput: 900
    userMessageOnFailure: >
      Failed to run tests.

  - type: ScheduleUploadTestResults
  - type: EnvironmentVariable
    variableName: COIN_CTEST_RESULTSDIR
    variableValue: "{{.SourceDir}}_standalone_tests/coverage-report"