summaryrefslogtreecommitdiffstats
path: root/coin/module_config.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'coin/module_config.yaml')
-rw-r--r--coin/module_config.yaml61
1 files changed, 40 insertions, 21 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
index be7882f0b3..8365e7a67d 100644
--- a/coin/module_config.yaml
+++ b/coin/module_config.yaml
@@ -160,6 +160,44 @@ call_cmake_instructions: &call_cmake
property: host.os
equals_value: Windows
+upload_test_artifacts_instruction: &upload_test_artifacts
+ type: Group
+ instructions:
+ - type: UploadTestArtifact
+ transferType: UploadModuleTestsArtifact
+ archiveDirectory: "{{.SourceDir}}/tests"
+ maxTimeInSeconds: 1200
+ maxTimeBetweenOutput: 1200
+ disable_if:
+ condition: property
+ property: configureArgs
+ in_values: "-DBUILD_SHARED_LIBS=OFF"
+
+regular_specific_test_instructions: &regular_test_instructions
+ type: Group
+ instructions:
+ - type: InstallTestBinaryArchive
+ relativeStoragePath: "{{.Env.MODULE_ARTIFACTS_RELATIVE_STORAGE_PATH}}"
+ directory: "{{.SourceDir}}/tests"
+ maxTimeInSeconds: 1200
+ maxTimeBetweenOutput: 1200
+ userMessageOnFailure: >
+ Failed to install tests archive.
+ - type: ChangeDirectory
+ directory: "{{.SourceDir}}/tests"
+ - type: ExecuteCommand
+ command: "ctest -V --rerun-failed"
+ ignoreExitCode: true
+ maxTimeInSeconds: 7200
+ maxTimeBetweenOutput: 900
+ userMessageOnFailure: >
+ Failed to run tests.
+ disable_if:
+ condition: property
+ property: configureArgs
+ in_values: "-DBUILD_SHARED_LIBS=OFF"
+
+
build_instructions:
- type: MakeDirectory
directory: .git
@@ -256,26 +294,7 @@ build_instructions:
maxTimeBetweenOutput: 120
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
+ - *upload_test_artifacts
test_instructions:
- - type: InstallTestBinaryArchive
- relativeStoragePath: "{{.Env.MODULE_ARTIFACTS_RELATIVE_STORAGE_PATH}}"
- directory: "{{.SourceDir}}/tests"
- maxTimeInSeconds: 1200
- maxTimeBetweenOutput: 1200
- userMessageOnFailure: >
- Failed to install tests archive.
- - type: ChangeDirectory
- directory: "{{.SourceDir}}/tests"
- - type: ExecuteCommand
- command: "ctest -V --rerun-failed"
- ignoreExitCode: true
- maxTimeInSeconds: 7200
- maxTimeBetweenOutput: 900
- userMessageOnFailure: >
- Failed to run tests.
+ - *regular_test_instructions