| 1 |
analysis_instructions_axivion: &analysis_instructions_axivion |
| 2 |
type: Group |
| 3 |
instructions: |
| 4 |
- type: Group |
| 5 |
instructions: |
| 6 |
- type: EnvironmentVariable |
| 7 |
variableName: AXIVION_CHAINLOAD_TOOLCHAIN_FILE |
| 8 |
variableValue: "{{.AgentWorkingDir}}/install/lib/cmake/Qt6/qt.toolchain.cmake" |
| 9 |
- type: EnvironmentVariable |
| 10 |
variableName: AXIVION_DIVIDED_MODULES |
| 11 |
variableValue: "qtbase_qtdeclarative_qtconnectivity_qtgrpc_qttools_qtwayland" |
| 12 |
- type: EnvironmentVariable |
| 13 |
variableName: CMAKE_PREFIX_PATH |
| 14 |
variableValue: "{{.AgentWorkingDir}}/install/lib/cmake" |
| 15 |
enable_if: |
| 16 |
condition: runtime |
| 17 |
env_var: TESTED_MODULE_COIN |
| 18 |
not_equals_value: "qtbase" |
| 19 |
- type: Group |
| 20 |
instructions: |
| 21 |
- type: Rename |
| 22 |
sourcePath: "{{.SourceDir}}/coin/axivion/ci_config_{{.Env.TARGET_OS_COIN}}.json" |
| 23 |
targetPath: "{{.Env.HOME}}/axivion/ci_config.json" |
| 24 |
userMessageOnFailure: "Moving ci_config.json failed. Make sure you have included the file in coin/axivion/ -folder" |
| 25 |
- type: Rename |
| 26 |
sourcePath: "{{.SourceDir}}/coin/axivion/start_analysis.sh" |
| 27 |
targetPath: "{{.Env.HOME}}/axivion/start_analysis.sh" |
| 28 |
userMessageOnFailure: "Moving start_analysis.sh failed. Make sure you have included the file in coin/axivion/ -folder" |
| 29 |
enable_if: |
| 30 |
condition: runtime |
| 31 |
env_var: AXIVION_DIVIDED_MODULES |
| 32 |
contains_value: "{{.Env.TESTED_MODULE_COIN}}" |
| 33 |
- type: SetBuildDirectory |
| 34 |
directory: "{{.SourceDir}}" |
| 35 |
- type: ChangeDirectory |
| 36 |
directory: "{{.BuildDir}}" |
| 37 |
- type: ExecuteCommand |
| 38 |
command: ["../../../axivion/start_analysis.sh"] |
| 39 |
maxTimeInSeconds: 28800 |
| 40 |
maxTimeBetweenOutput: 28800 |
| 41 |
userMessageOnFailure: "Failed to run analysis" |
| 42 |
|
| 43 |
build_environment_axivion: &build_environment_axivion |
| 44 |
type: Group |
| 45 |
instructions: |
| 46 |
- type: ExecuteCommand |
| 47 |
command: ["sudo", "mkdir", "-p","/data/axivion"] |
| 48 |
maxTimeInSeconds: 100 |
| 49 |
maxTimeBetweenOutput: 100 |
| 50 |
userMessageOnFailure: "Create mount point for results failed" |
| 51 |
- type: ExecuteCommand |
| 52 |
command: ["sudo", "mount", "-t", "nfs", "-o", "rw,nfsvers=3", "10.212.0.93:/data/axivion", "/data/axivion"] |
| 53 |
maxTimeInSeconds: 100 |
| 54 |
maxTimeBetweenOutput: 100 |
| 55 |
userMessageOnFailure: "Mount failed" |
| 56 |
- type: ExecuteCommand |
| 57 |
command: ["rm","-rf","{{.SourceDir}}"] |
| 58 |
maxTimeInSeconds: 100 |
| 59 |
maxTimeBetweenOutput: 100 |
| 60 |
userMessageOnFailure: "Failed to remove source directory" |
| 61 |
- type: MakeDirectory |
| 62 |
directory: "{{.SourceDir}}" |
| 63 |
- type: ChangeDirectory |
| 64 |
directory: "{{.SourceDir}}" |
| 65 |
- type: ExecuteCommand |
| 66 |
command: ["git", "clone", "--jobs={{.NumCPU}}", "-n","--depth=50", "git://{{.Env.QT_COIN_GIT_DAEMON}}/qt-project/qt/{{.Env.TESTED_MODULE_COIN}}","."] |
| 67 |
maxTimeInSeconds: 900 |
| 68 |
maxTimeBetweenOutput: 900 |
| 69 |
userMessageOnFailure: "Failed to clone repository" |
| 70 |
- type: ExecuteCommand |
| 71 |
command: ["git", "fetch", "--recurse-submodules", "origin", "{{.Env.TESTED_MODULE_REVISION_COIN}}"] |
| 72 |
maxTimeInSeconds: 900 |
| 73 |
maxTimeBetweenOutput: 900 |
| 74 |
userMessageOnFailure: "Failed to fetch sources" |
| 75 |
- type: ExecuteCommand |
| 76 |
command: ["git", "checkout", "--force", "{{.Env.TESTED_MODULE_REVISION_COIN}}"] |
| 77 |
maxTimeInSeconds: 900 |
| 78 |
maxTimeBetweenOutput: 900 |
| 79 |
userMessageOnFailure: "Failed to checkout sources" |
| 80 |
- type: ExecuteCommand |
| 81 |
command: ["git", "submodule", "update", "--init", "--recursive"] |
| 82 |
maxTimeInSeconds: 1800 |
| 83 |
maxTimeBetweenOutput: 900 |
| 84 |
userMessageOnFailure: "Failed to initialize git submodules" |
| 85 |
- type: Group |
| 86 |
instructions: |
| 87 |
- !include "{{qt/qtbase}}/cmake_module_build_instructions.yaml" |
| 88 |
enable_if: |
| 89 |
condition: runtime |
| 90 |
env_var: TESTED_MODULE_COIN |
| 91 |
not_equals_value: "qtbase" |
| 92 |
- type: Group |
| 93 |
instructions: |
| 94 |
- !include "{{qt/qtbase}}/cmake_qtbase_build_instructions.yaml" |
| 95 |
enable_if: |
| 96 |
condition: runtime |
| 97 |
env_var: TESTED_MODULE_COIN |
| 98 |
equals_value: "qtbase" |
| 99 |
|
| 100 |
type: Group |
| 101 |
instructions: |
| 102 |
- !include "{{qt/qtbase}}/prepare_building_env.yaml" |
| 103 |
- *build_environment_axivion |
| 104 |
- *analysis_instructions_axivion |
| 105 |
enable_if: |
| 106 |
condition: runtime |
| 107 |
env_var: AXIVION_ANALYSIS |
| 108 |
equals_value: "1" |
| 109 |
|