[isar-cip-core][PATCH] ci: Change to single job


Nobuhiro Iwamatsu
 

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
---
.gitlab-ci.yml | 122 +++++++++++++------------------------------------
1 file changed, 32 insertions(+), 90 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 802dbcd..5bd4774 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,17 +2,10 @@ image: kasproject/kas-isar:1.1

variables:
GIT_STRATEGY: clone
- release: buster
- extention: base
- use_rt: enable
- targz: enable
- dtb: none

-stages:
- - build
-
-default:
- before_script:
+all:
+ stage: build
+ script:
- export http_proxy=$HTTP_PROXY
- export https_proxy=$HTTPS_PROXY
- export ftp_proxy=$FTP_PROXY
@@ -20,83 +13,32 @@ default:
- export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY

-.build_base:
- stage: build
- variables:
- base_yaml: "kas-cip.yml:kas/board/${target}.yml"
- script:
- - sudo rm -rf build/tmp
- - if [ "${use_rt}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/rt.yml"; fi;
- - if [ "${extention}" != "base" ]; then base_yaml="${base_yaml}:kas/opt/${extention}.yml"; fi;
- - if [ "${targz}" = "enable" ]; then base_yaml="${base_yaml}:kas/opt/targz-img.yml"; fi;
- - kas build ${base_yaml}
- - scripts/deploy-cip-core.sh ${release} ${target} ${extention} ${dtb}
-
-# base image
-build:simatic-ipc227e-base:
- extends:
- - .build_base
- variables:
- target: simatic-ipc227e
-
-build:bbb-base:
- extends:
- - .build_base
- variables:
- target: bbb
- dtb: am335x-boneblack.dtb
-
-build:iwg20m-base:
- extends:
- - .build_base
- variables:
- target: iwg20m
- dtb: r8a7743-iwg20d-q7-dbcm-ca.dtb
-
-build:hihope-rzg2m-base:
- extends:
- - .build_base
- variables:
- target: rzg2m
- dtb: renesas/r8a774a1-hihope-rzg2m-ex.dtb
-
-build:qemu-amd64-base:
- extends:
- - .build_base
- variables:
- target: qemu-amd64
- extention: security
- use_rt: disable
- targz: disable
-
-# test
-build:simatic-ipc227e-test:
- extends:
- - .build_base
- variables:
- target: simatic-ipc227e
- extention: test
-
-build:bbb-test:
- extends:
- - .build_base
- variables:
- target: bbb
- extention: test
- dtb: am335x-boneblack.dtb
-
-build:iwg20m-test:
- extends:
- - .build_base
- variables:
- target: iwg20m
- extention: test
- dtb: r8a7743-iwg20d-q7-dbcm-ca.dtb
-
-build:hihope-rzg2m-test:
- extends:
- - .build_base
- variables:
- target: rzg2m
- extention: test
- dtb: renesas/r8a774a1-hihope-rzg2m-ex.dtb
+ # simatic-ipc227e
+ - kas build kas-cip.yml:kas/board/simatic-ipc227e.yml:kas/opt/rt.yml:kas/opt/targz-img.yml
+ - scripts/deploy-cip-core.sh buster simatic-ipc227e base none
+ # bbb
+ - kas build kas-cip.yml:kas/board/bbb.yml:kas/opt/rt.yml:kas/opt/targz-img.yml
+ - scripts/deploy-cip-core.sh buster bbb base am335x-boneblack.dtb
+ # iwg20m
+ - kas build kas-cip.yml:kas/board/iwg20m.yml:kas/opt/rt.yml:kas/opt/targz-img.yml
+ - scripts/deploy-cip-core.sh buster iwg20m base r8a7743-iwg20d-q7-dbcm-ca.dtb
+ # rzg2m
+ - kas build kas-cip.yml:kas/board/rzg2m.yml:kas/opt/rt.yml:kas/opt/targz-img.yml
+ - scripts/deploy-cip-core.sh buster rzg2m base renesas/r8a774a1-hihope-rzg2m-ex.dtb
+
+ # qemu-amd64 / security
+ - kas build kas-cip.yml:kas/board/qemu-amd64.yml:kas/opt/security.yml
+ - scripts/deploy-cip-core.sh buster qemu-amd64 security base
+
+ # simatic-ipc227e / test
+ - kas build kas-cip.yml:kas/board/simatic-ipc227e.yml:kas/opt/rt.yml:kas/opt/test.yml:kas/opt/targz-img.yml
+ - scripts/deploy-cip-core.sh buster simatic-ipc227e test none
+ # bbb / test
+ - kas build kas-cip.yml:kas/board/bbb.yml:kas/opt/rt.yml:kas/opt/test.yml:kas/opt/targz-img.yml
+ - scripts/deploy-cip-core.sh buster bbb test am335x-boneblack.dtb
+ # iwg20m / test
+ - kas build kas-cip.yml:kas/board/iwg20m.yml:kas/opt/rt.yml:kas/opt/test.yml:kas/opt/targz-img.yml
+ - scripts/deploy-cip-core.sh buster iwg20m test r8a7743-iwg20d-q7-dbcm-ca.dtb
+ # rzg2m / test
+ - kas build kas-cip.yml:kas/board/rzg2m.yml:kas/opt/rt.yml:kas/opt/test.yml:kas/opt/targz-img.yml
+ - scripts/deploy-cip-core.sh buster rzg2m test renesas/r8a774a1-hihope-rzg2m-ex.dtb
--
2.27.0

Join cip-dev@lists.cip-project.org to automatically receive all group messages.