meta-arm.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] CI: merge testimage into the build stage
@ 2021-07-27 19:46 Jon Mason
  2021-07-27 19:46 ` [PATCH 2/3] CI: Add bootstrap for clang Jon Mason
  2021-07-27 19:46 ` [PATCH 3/3] CI: add qemuarm clang testimage Jon Mason
  0 siblings, 2 replies; 3+ messages in thread
From: Jon Mason @ 2021-07-27 19:46 UTC (permalink / raw)
  To: meta-arm

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 .gitlab-ci.yml   | 98 +++++++-----------------------------------------
 ci/testimage.yml |  1 +
 2 files changed, 14 insertions(+), 85 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a3c4493..949c80a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,6 @@ stages:
   - prep
   - bootstrap
   - build
-  - test
 
 # Common job fragment to get a worker ready
 .setup:
@@ -35,26 +34,6 @@ stages:
     - kas build $KASFILES
     - ./ci/check-warnings $KAS_WORK_DIR/build/warnings.log
 
-.build_artifacts:
-  artifacts:
-    paths:
-      - $IMAGE_DIR/*
-    expire_in: 1 day
-
-.test:
-  extends: .setup
-  stage: test
-  # Unique before_script here to avoid the rm from the one in .setup
-  before_script:
-    - mkdir --verbose --parents $KAS_WORK_DIR $KAS_REPO_REF_DIR $SSTATE_DIR $DL_DIR $TOOLCHAIN_DIR
-  script:
-    - KASFILES=$(./ci/jobs-to-kas $CI_JOB_NAME)
-    # These are needed to avoid warnings about file permissions from the artifacts
-    - sudo chown -R builder $KAS_WORK_DIR
-    - sudo chgrp -R builder $KAS_WORK_DIR
-    - kas build $KASFILES -c testimage
-
-
 #
 # Prep stage, update repositories once
 #
@@ -162,83 +141,32 @@ n1sdp/armgcc:
 qemu-cortex-a53:
   extends: .build
 
-qemuarm:
-  extends:
-    - .build
-    - .build_artifacts
-
-qemuarm64-sbsa:
-  extends:
-    - .build
-    - .build_artifacts
-
-qemuarm64-secureboot:
-  extends:
-    - .build
-    - .build_artifacts
-
-qemuarm64-secureboot/clang:
-  extends:
-    - .build
-    - .build_artifacts
-
-qemuarm64-secureboot/clang/musl:
-  extends:
-    - .build
-    - .build_artifacts
-
-qemuarm64-secureboot/musl:
-  extends:
-    - .build
-    - .build_artifacts
-
-qemuarmv5:
-  extends:
-    - .build
-    - .build_artifacts
-
-sgi575:
+qemuarm/testimage:
   extends: .build
 
-tc0:
+qemuarm64-sbsa:
   extends: .build
 
-
-#
-# Third phase, the test jobs
-#
-
-# QEMU based machines can use testimage, others will need something else (i.e., LAVA)
-
-qemuarm/testimage:
-  extends: .test
-  needs:
-    - job: qemuarm
-
 qemuarm64-secureboot/testimage:
-  extends: .test
-  needs:
-    - job: qemuarm64-secureboot
+  extends: .build
 
 qemuarm64-secureboot/clang/testimage:
-  extends: .test
-  needs:
-    - job: qemuarm64-secureboot/clang
+  extends: .build
 
 qemuarm64-secureboot/clang/musl/testimage:
-  extends: .test
-  needs:
-    - job: qemuarm64-secureboot/clang/musl
+  extends: .build
 
 qemuarm64-secureboot/musl/testimage:
-  extends: .test
-  needs:
-    - job: qemuarm64-secureboot/musl
+  extends: .build
 
 qemuarmv5/testimage:
-  extends: .test
-  needs:
-    - job: qemuarmv5
+  extends: .build
+
+sgi575:
+  extends: .build
+
+tc0:
+  extends: .build
 
 
 #
diff --git a/ci/testimage.yml b/ci/testimage.yml
index df2c22e..adc7765 100644
--- a/ci/testimage.yml
+++ b/ci/testimage.yml
@@ -4,6 +4,7 @@ header:
 local_conf_header:
   testimage: |
     IMAGE_CLASSES += "testimage"
+    TESTIMAGE_AUTO = "1"
   slirp: |
     TEST_RUNQEMUPARAMS = "slirp"
     TEST_SERVER_IP = "127.0.0.1"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/3] CI: Add bootstrap for clang
  2021-07-27 19:46 [PATCH 1/3] CI: merge testimage into the build stage Jon Mason
@ 2021-07-27 19:46 ` Jon Mason
  2021-07-27 19:46 ` [PATCH 3/3] CI: add qemuarm clang testimage Jon Mason
  1 sibling, 0 replies; 3+ messages in thread
From: Jon Mason @ 2021-07-27 19:46 UTC (permalink / raw)
  To: meta-arm

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 .gitlab-ci.yml         | 10 +++++++---
 ci/clang-bootstrap.yml | 10 ++++++++++
 2 files changed, 17 insertions(+), 3 deletions(-)
 create mode 100644 ci/clang-bootstrap.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 949c80a..6cfe1d0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,6 +60,10 @@ n1sdp/bootstrap:
   extends: .build
   stage: bootstrap
 
+n1sdp/clang/clang-bootstrap:
+  extends: .build
+  stage: bootstrap
+
 # What percentage of machines in the layer do we build
 machine-coverage:
   stage: bootstrap
@@ -68,6 +72,9 @@ machine-coverage:
   - ./ci/check-machine-coverage
   coverage: '/Coverage: \d+/'
 
+toolchains:
+  extends: .build
+  stage: bootstrap
 
 #
 # Build stage, the actual build jobs
@@ -81,9 +88,6 @@ check-layers:
   - kas shell --update --force-checkout ci/base.yml:ci/meta-arm-autonomy.yml:ci/meta-python.yml --command \
     "$CI_PROJECT_DIR/ci/check-layers.py $CI_PROJECT_DIR/ci/check-layers.yml $CI_PROJECT_DIR $KAS_WORK_DIR"
 
-toolchains:
-  extends: .build
-
 corstone500:
   extends: .build
 
diff --git a/ci/clang-bootstrap.yml b/ci/clang-bootstrap.yml
new file mode 100644
index 0000000..f5497ff
--- /dev/null
+++ b/ci/clang-bootstrap.yml
@@ -0,0 +1,10 @@
+header:
+  version: 9
+
+target:
+  - binutils-cross-aarch64
+  - clang-cross-aarch64
+  - clang-native
+  - python3-native
+  - opkg-native
+  - rpm-native
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 3/3] CI: add qemuarm clang testimage
  2021-07-27 19:46 [PATCH 1/3] CI: merge testimage into the build stage Jon Mason
  2021-07-27 19:46 ` [PATCH 2/3] CI: Add bootstrap for clang Jon Mason
@ 2021-07-27 19:46 ` Jon Mason
  1 sibling, 0 replies; 3+ messages in thread
From: Jon Mason @ 2021-07-27 19:46 UTC (permalink / raw)
  To: meta-arm

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 .gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6cfe1d0..a85d2cd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -148,6 +148,9 @@ qemu-cortex-a53:
 qemuarm/testimage:
   extends: .build
 
+qemuarm/clang/testimage:
+  extends: .build
+
 qemuarm64-sbsa:
   extends: .build
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-27 19:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 19:46 [PATCH 1/3] CI: merge testimage into the build stage Jon Mason
2021-07-27 19:46 ` [PATCH 2/3] CI: Add bootstrap for clang Jon Mason
2021-07-27 19:46 ` [PATCH 3/3] CI: add qemuarm clang testimage Jon Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).