Skip to contentSkip to conversation

ci: add yocto-check-layers step

PATCH New Ross Burton 1 participant 1 message Jun 17, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ci: add yocto-check-layers step

Add a job to run yocto-check-layers to validate a selection of layers are Yocto Project Compatible.

Right now we validate:
- meta-arm
- meta-arm-bsp
- meta-arm-toolchain
- meta-gem5

meta-atp and meta-arm-autonomy are currently skipped: meta-atp fails and meta-arm-autonomy has a larger set of dependant layers and will be added later.

Change-Id Ia0c8c16e4228eeb461bd213b30703e950ede656f
---
 .gitlab-ci.yml      |  8 ++++++++
 ci/check-layers.py  | 43 +++++++++++++++++++++++++++++++++++++++++++
 ci/check-layers.yml |  7 +++++++
 3 files changed, 58 insertions(+)
 create mode 100755 ci/check-layers.py
 create mode 100644 ci/check-layers.yml
.gitlab-ci.yml +8 -0
index b18373e..6f39844 100644
@@ -72,6 +72,14 @@ machine-coverage:
 # Build stage, the actual build jobs
 #
 
+# Validate layers are Yocto Project Compatible
+check-layers:
+  extends: .setup
+  coverage: '/Coverage: \d+/'
+  script:
+  - kas shell --update --force-checkout ci/base.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"
+
 corstone500:
   extends: .build
 
ci/check-layers.py new file +43 -0

43 lines not on this page · raw message

ci/check-layers.yml new file +7 -0
new file mode 100644
index 0000000..7d2820c
@@ -0,0 +1,7 @@
+layers:
+  - meta-arm
+  - meta-arm-bsp
+  - meta-arm-toolchain
+  - meta-gem5
+dependencies:
+  - meta-openembedded/meta-oe
Signature · 1 line
2.25.1