From 68946aa4d321736a3a8d22d632d9ac332c44e8a4 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Mon, 25 Nov 2019 11:17:03 +0200 Subject: coin: add CI build configuration Add configuration for building nitrogen6x as CI test build on a single Ubuntu 16.04 build machine from qt5 5.12 branch. Change-Id: I4174d8e04c9e33c9ddf99e1e36cfb555a391530d Reviewed-by: Mikko Gronoff Reviewed-by: Samuli Piippo --- coin/dependencies.yaml | 1 + coin/module_config.yaml | 62 ++++++++++++++++++++++++++++++++++++++++++ coin/product_dependencies.yaml | 3 ++ 3 files changed, 66 insertions(+) create mode 100644 coin/dependencies.yaml create mode 100644 coin/module_config.yaml create mode 100644 coin/product_dependencies.yaml diff --git a/coin/dependencies.yaml b/coin/dependencies.yaml new file mode 100644 index 00000000..c093387c --- /dev/null +++ b/coin/dependencies.yaml @@ -0,0 +1 @@ +dependencies: {} diff --git a/coin/module_config.yaml b/coin/module_config.yaml new file mode 100644 index 00000000..42ce021a --- /dev/null +++ b/coin/module_config.yaml @@ -0,0 +1,62 @@ +version: 1 +accept_configuration: + condition: and + conditions: + - condition: property + property: host.osVersion + equals_value: Ubuntu_16_04 + +environment: &environment + type: Group + instructions: + - type: EnvironmentVariable + variableName: MACHINE + variableValue: nitrogen6x + +build_instructions: + - *environment + - type: SetBuildDirectory + directory: "{{.AgentWorkingDir}}/build" + - type: MakeDirectory + directory: "{{.BuildDir}}" + - type: ChangeDirectory + directory: "{{.BuildDir}}" + - type: ExecuteCommand + command: ["sudo", "mkdir", "-p", "/mnt/yocto-cache"] + userMessageOnFailure: "Could not create '/mnt/yocto-cache' directory" + - type: ExecuteCommand + command: ["sudo", "mount", "yocto-cache.intra.qt.io:/srv/yocto-cache", "/mnt/yocto-cache"] + maxTimeInSeconds: 60 + maxTimeBetweenOutput: 60 + userMessageOnFailure: "Could not mount yocto cache." + - type: WriteFile + fileContents: | + #!/bin/bash -xe + source ./setup-environment.sh + export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SSTATE_DIR DL_DIR" + export SSTATE_DIR=/mnt/yocto-cache/sstate-caches/$(sed -n -e "s/DISTRO_CODENAME.*\"\(.*\)\"/\1/p" ../sources/poky/meta-*/conf/distro/poky.conf) + bitbake b2qt-embedded-qt5-image meta-toolchain-b2qt-embedded-qt5-sdk + SDKMACHINE=i686-mingw32 bitbake meta-toolchain-b2qt-embedded-qt5-sdk + filename: "{{.BuildDir}}/start-build" + fileMode: 420 + - type: ExecuteCommand + command: ["chmod", "+x", "{{.BuildDir}}/start-build"] + userMessageOnFailure: "Could not add execution right to the start-build." + - type: EnvironmentVariable + variableName: DL_DIR + variableValue: "/mnt/yocto-cache/downloads" + - type: ExecuteCommand + command: ["{{.SourceDir}}/b2qt-init-build-env", "init", "--device", "{{.Env.MACHINE}}", "--reference", "/mnt/yocto-cache/mirror"] + maxTimeInSeconds: 1800 + maxTimeBetweenOutput: 1800 + userMessageOnFailure: "Failed to download the yocto recipes repositories" + - type: ExecuteCommand + command: ["{{.BuildDir}}/start-build"] + maxTimeInSeconds: 28800 + maxTimeBetweenOutput: 28800 + userMessageOnFailure: "Build failed." + - type: ExecuteCommand + command: ["sudo", "umount", "/mnt/yocto-cache"] + userMessageOnFailure: "Unmounting cache failed." + +test_instructions: [] diff --git a/coin/product_dependencies.yaml b/coin/product_dependencies.yaml new file mode 100644 index 00000000..206a1e5a --- /dev/null +++ b/coin/product_dependencies.yaml @@ -0,0 +1,3 @@ +dependencies: + ../../qt/qt5: + ref: "5.12" -- cgit v1.2.3