summaryrefslogtreecommitdiffstats
path: root/coin/instructions/cmake_build_and_upload_test_artifacts.yaml
blob: 81b0f7773bf7b5b969661bad7b63104029c57d03 (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
33
34
type: Group
instructions:
  - type: ChangeDirectory
    directory: "{{.SourceDir}}/tests"
  - type: EnvironmentVariable
    variableName: COIN_CMAKE_ARGS
    variableValue: "{{.SourceDir}}\\tests"
    enable_if:
      condition: property
      property: host.os
      equals_value: Windows
  - type: EnvironmentVariable
    variableName: COIN_CMAKE_ARGS
    variableValue: "{{.SourceDir}}/tests"
    disable_if:
      condition: property
      property: host.os
      equals_value: Windows
  - !include "{{qt/qtbase}}/call_cmake.yaml"
  - type: ExecuteCommand
    command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel"
    maxTimeInSeconds: 6000
    maxTimeBetweenOutput: 1200
    userMessageOnFailure: >
      Failed to build sources. In the current state bug can be everywhere. Contact Liang first.
  - type: UploadTestArtifact
    transferType: UploadModuleTestsArtifact
    archiveDirectory: "{{.SourceDir}}/tests"
    maxTimeInSeconds: 1200
    maxTimeBetweenOutput: 1200
disable_if:
  condition: property
  property: configureArgs
  contains_value: "-DBUILD_SHARED_LIBS=OFF"