summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2019-04-25 11:44:20 +0200
committerJędrzej Nowacki <jedrzej.nowacki@qt.io>2019-05-10 13:38:13 +0000
commit263af45b4cf5c0f44e2920a6bd144983e421af92 (patch)
tree33093dd0f3e7eb3f961586777ae0d37488fcb01e /coin
parente9085f4162ec172b9a5a5e3f9148e058fe1787cb (diff)
Move build and test instructions from coin to qtbase
That way we can update instructions without waiting for Coin update. The patch contains invalid test instructions, but as cmake port is not yet able to run tests it should not matter. Change-Id: I86088aefec49ded60af00243b0b8c60c8f16147a Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Diffstat (limited to 'coin')
-rw-r--r--coin/module_config.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
new file mode 100644
index 0000000000..041209b2fd
--- /dev/null
+++ b/coin/module_config.yaml
@@ -0,0 +1,56 @@
+version: 1
+accept_configuration:
+ condition: property
+ property: host.os
+ equals_property: target.os
+build_instructions:
+ - type: MakeDirectory
+ directory: .git
+ - type: SetBuildDirectory
+ directory: "{{.SourceDir}}"
+ - type: ChangeDirectory
+ directory: "{{.BuildDir}}"
+ - type: ExecuteCommand
+ command: cmake {{.Env.CONFIGURE_ARGS}}
+ maxTimeInSeconds: 6000
+ maxTimeBetweenOutput: 120
+ userMessageOnFailure: >
+ Failed to call cmake. Contact Liang then.
+ - type: ExecuteCommand
+ command: make DESTDIR={{.InstallRoot}} -j {{.NumCPU}} install
+ maxTimeInSeconds: 6000
+ maxTimeBetweenOutput: 120
+ userMessageOnFailure: >
+ Failed to call make install. Contact Liang then.
+ disable_if:
+ condition: property
+ property: host.os
+ equals_value: Windows
+ - type: ExecuteCommand
+ command: jom DESTDIR={{.InstallRoot}} -j {{.NumCPU}} install
+ maxTimeInSeconds: 6000
+ maxTimeBetweenOutput: 120
+ userMessageOnFailure: >
+ Failed to call nmake install. Contact Liang then.
+ disable_if:
+ condition: property
+ property: host.os
+ not_equals_value: Windows
+ - type: SignPackage
+ disable_if:
+ condition: property
+ property: host.os
+ not_equals_value: Windows
+ directory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
+ - type: UploadArtifact
+ archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
+ transferType: UploadModuleBuildArtifact
+ maxTimeInSeconds: 1200
+ maxTimeBetweenOutput: 1200
+test_instructions:
+ - type: ExecuteCommand
+ command: echo "hello world - test"
+ maxTimeInSeconds: 6000
+ maxTimeBetweenOutput: 120
+ userMessageOnFailure: >
+ Failed to call echo. Contact Liang then.