Patrick Williams | 44b3caf | 2024-04-12 16:51:14 -0500 | [diff] [blame] | 1 | image: ${MIRROR_GHCR}/siemens/kas/kas:4.3.2 |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 2 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 3 | variables: |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 4 | # These are needed as the k8s executor doesn't respect the container |
| 5 | # entrypoint by default |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 6 | FF_KUBERNETES_HONOR_ENTRYPOINT: 1 |
| 7 | FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: 0 |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 8 | # The default value for KUBERNETES_CPU_REQUEST |
| 9 | CPU_REQUEST: "" |
| 10 | # The default machine tag for the build jobs |
| 11 | DEFAULT_TAG: "" |
| 12 | # The machine tag for the ACS test jobs |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 13 | ACS_TAG: "" |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 14 | # The directory to use as the persistent cache (the root for DL_DIR, SSTATE_DIR, etc) |
| 15 | CACHE_DIR: $CI_BUILDS_DIR/persist |
| 16 | # The container mirror to use |
| 17 | MIRROR_GHCR: ghcr.io |
| 18 | # Whether to run the SystemReady ACS tests |
| 19 | ACS_TEST: 0 |
| 20 | # The list of extra Kas fragments to be used when building |
| 21 | EXTRA_KAS_FILES: "" |
| 22 | # The NVD API key to use when fetching CVEs |
| 23 | NVDCVE_API_KEY: "" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 24 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 25 | stages: |
| 26 | - prep |
| 27 | - build |
| 28 | |
| 29 | # Common job fragment to get a worker ready |
| 30 | .setup: |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 31 | tags: |
| 32 | - $DEFAULT_TAG |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 33 | stage: build |
| 34 | interruptible: true |
| 35 | variables: |
| 36 | KAS_WORK_DIR: $CI_PROJECT_DIR/work |
Andrew Geissler | 9347dd4 | 2023-03-03 12:38:41 -0600 | [diff] [blame] | 37 | KAS_REPO_REF_DIR: $CACHE_DIR/repos |
| 38 | SSTATE_DIR: $CACHE_DIR/sstate |
| 39 | DL_DIR: $CACHE_DIR/downloads |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 40 | BB_LOGCONFIG: $CI_PROJECT_DIR/ci/logging.yml |
Andrew Geissler | 9347dd4 | 2023-03-03 12:38:41 -0600 | [diff] [blame] | 41 | TOOLCHAIN_DIR: $CACHE_DIR/toolchains |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 42 | IMAGE_DIR: $CI_PROJECT_DIR/work/build/tmp/deploy/images |
| 43 | TOOLCHAIN_LINK_DIR: $CI_PROJECT_DIR/work/build/toolchains |
| 44 | before_script: |
| 45 | - echo KAS_WORK_DIR = $KAS_WORK_DIR |
| 46 | - echo SSTATE_DIR = $SSTATE_DIR |
| 47 | - echo DL_DIR = $DL_DIR |
| 48 | - rm -rf $KAS_WORK_DIR |
| 49 | - mkdir --verbose --parents $KAS_WORK_DIR $KAS_REPO_REF_DIR $SSTATE_DIR $DL_DIR $TOOLCHAIN_DIR $TOOLCHAIN_LINK_DIR |
| 50 | # Must do this here, as it's the only way to make sure the toolchain is installed on the same builder |
| 51 | - ./ci/get-binary-toolchains $DL_DIR $TOOLCHAIN_DIR $TOOLCHAIN_LINK_DIR |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 52 | |
| 53 | # Generalised fragment to do a Kas build |
| 54 | .build: |
| 55 | extends: .setup |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 56 | variables: |
| 57 | KUBERNETES_CPU_REQUEST: $CPU_REQUEST |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 58 | rules: |
| 59 | # Don't run MR pipelines |
| 60 | - if: $CI_PIPELINE_SOURCE == "merge_request_event" |
| 61 | when: never |
| 62 | # Don't run pipelines for tags |
| 63 | - if: $CI_COMMIT_TAG |
| 64 | when: never |
| 65 | # Don't run if BUILD_ENABLE_REGEX is set, but the job doesn't match the regex |
| 66 | - if: '$BUILD_ENABLE_REGEX != null && $CI_JOB_NAME !~ $BUILD_ENABLE_REGEX' |
| 67 | when: never |
| 68 | # Allow the dev kernels to fail and not fail the overall build |
| 69 | - if: '$KERNEL == "linux-yocto-dev"' |
| 70 | allow_failure: true |
| 71 | # Catch all for everything else |
| 72 | - if: '$KERNEL != "linux-yocto-dev"' |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 73 | script: |
Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 74 | - KASFILES=$(./ci/jobs-to-kas "$CI_JOB_NAME" $EXTRA_KAS_FILES):lockfile.yml |
Andrew Geissler | 23e0279 | 2023-07-21 09:06:10 -0500 | [diff] [blame] | 75 | - kas dump --update --force-checkout --resolve-refs --resolve-env $KASFILES |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 76 | - kas build $KASFILES |
| 77 | - ./ci/check-warnings $KAS_WORK_DIR/build/warnings.log |
| 78 | artifacts: |
| 79 | name: "logs" |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 80 | when: always |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 81 | paths: |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 82 | - $CI_PROJECT_DIR/work/build/tmp*/work*/**/temp/log.do_*.* |
| 83 | - $CI_PROJECT_DIR/work/build/tmp*/work*/**/testimage/* |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 84 | |
| 85 | # |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 86 | # Prep stage, update repositories once. |
| 87 | # Set the CI variable CI_CLEAN_REPOS=1 to refetch the respositories from scratch |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 88 | # |
| 89 | update-repos: |
| 90 | extends: .setup |
| 91 | stage: prep |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 92 | allow_failure: |
| 93 | exit_codes: 128 |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 94 | script: |
Andrew Geissler | 23e0279 | 2023-07-21 09:06:10 -0500 | [diff] [blame] | 95 | - | |
| 96 | flock --verbose --timeout 60 $KAS_REPO_REF_DIR ./ci/update-repos |
| 97 | # Only generate if doesn't already exist, to allow feature branches to drop one in. |
| 98 | if test -f lockfile.yml; then |
| 99 | echo Using existing lockfile.yml |
| 100 | else |
| 101 | # Be sure that this is the complete list of layers being fetched |
| 102 | kas dump --lock --update ci/qemuarm64.yml:ci/meta-openembedded.yml:ci/clang.yml:ci/meta-virtualization.yml | tee lockfile.yml |
| 103 | fi |
| 104 | artifacts: |
| 105 | name: "lockfile" |
| 106 | paths: |
| 107 | - lockfile.yml |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 108 | |
| 109 | # |
| 110 | # Build stage, the actual build jobs |
| 111 | # |
| 112 | # Available options for building are |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 113 | # DISTRO: [poky, poky-tiny] |
| 114 | # KERNEL: [linux-yocto, linux-yocto-dev, linux-yocto-rt] |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 115 | # TOOLCHAINS: [gcc, clang, external-gccarm] |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 116 | # TCLIBC: [glibc, musl] |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 117 | # FIRMWARE: [u-boot, edk2] |
| 118 | # TS: [none, trusted-services] |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 119 | # VIRT: [none, xen] |
| 120 | # TESTING: testimage |
| 121 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 122 | corstone1000-fvp: |
| 123 | extends: .build |
| 124 | parallel: |
| 125 | matrix: |
Patrick Williams | 3965356 | 2024-03-01 08:54:02 -0600 | [diff] [blame] | 126 | - FIRMWARE: corstone1000-firmware-only |
| 127 | TESTING: [testimage, tftf] |
| 128 | - FIRMWARE: none |
| 129 | TESTING: testimage |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 130 | |
| 131 | corstone1000-mps3: |
| 132 | extends: .build |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 133 | parallel: |
| 134 | matrix: |
Patrick Williams | 3965356 | 2024-03-01 08:54:02 -0600 | [diff] [blame] | 135 | - FIRMWARE: corstone1000-firmware-only |
| 136 | TESTING: [none, tftf] |
| 137 | - FIRMWARE: none |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 138 | |
| 139 | fvp-base: |
| 140 | extends: .build |
| 141 | parallel: |
| 142 | matrix: |
| 143 | - TESTING: testimage |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 144 | - FIRMWARE: edk2 |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 145 | - SYSTEMREADY_FIRMWARE: arm-systemready-firmware |
| 146 | |
| 147 | arm-systemready-ir-acs: |
| 148 | extends: .build |
| 149 | timeout: 12h |
| 150 | parallel: |
| 151 | matrix: |
| 152 | # arm-systemready-ir-acs must be specified after fvp-base for ordering |
| 153 | # purposes for the jobs-to-kas output. It is not enough to just have it |
| 154 | # in the job name because fvp-base.yml overwrites the target. |
| 155 | - PLATFORM: fvp-base |
| 156 | ARM_SYSTEMREADY_IR_ACS: arm-systemready-ir-acs |
| 157 | tags: |
| 158 | - ${ACS_TAG} |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 159 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 160 | fvps: |
| 161 | extends: .build |
| 162 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 163 | generic-arm64: |
| 164 | extends: .build |
| 165 | |
| 166 | juno: |
| 167 | extends: .build |
| 168 | parallel: |
| 169 | matrix: |
| 170 | - TOOLCHAINS: [gcc, clang] |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 171 | FIRMWARE: [u-boot, edk2] |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 172 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 173 | musca-b1: |
| 174 | extends: .build |
| 175 | |
| 176 | musca-s1: |
| 177 | extends: .build |
| 178 | |
| 179 | n1sdp: |
| 180 | extends: .build |
| 181 | parallel: |
| 182 | matrix: |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 183 | - TESTING: [none, n1sdp-ts, n1sdp-optee, tftf] |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 184 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 185 | qemu-generic-arm64: |
| 186 | extends: .build |
| 187 | parallel: |
| 188 | matrix: |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 189 | - KERNEL: [linux-yocto, linux-yocto-rt] |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 190 | TOOLCHAINS: [gcc, clang] |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 191 | TESTING: testimage |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 192 | - KERNEL: linux-yocto-dev |
| 193 | TESTING: testimage |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 194 | |
| 195 | qemuarm64-secureboot: |
| 196 | extends: .build |
| 197 | parallel: |
| 198 | matrix: |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 199 | - KERNEL: [linux-yocto, linux-yocto-rt] |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 200 | TOOLCHAINS: [gcc, clang] |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 201 | TCLIBC: [glibc, musl] |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 202 | TS: [none, qemuarm64-secureboot-ts] |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 203 | TESTING: testimage |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 204 | - KERNEL: linux-yocto-dev |
| 205 | TESTING: testimage |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 206 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 207 | qemuarm64: |
| 208 | extends: .build |
| 209 | parallel: |
| 210 | matrix: |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 211 | - DISTRO: poky |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 212 | KERNEL: [linux-yocto, linux-yocto-rt] |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 213 | TOOLCHAINS: [gcc, clang] |
| 214 | FIRMWARE: [u-boot, edk2] |
| 215 | TESTING: testimage |
| 216 | - DISTRO: poky-tiny |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 217 | TESTING: testimage |
| 218 | - VIRT: xen |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 219 | - KERNEL: linux-yocto-dev |
| 220 | TESTING: testimage |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 221 | |
| 222 | qemuarm-secureboot: |
| 223 | extends: .build |
| 224 | parallel: |
| 225 | matrix: |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 226 | - KERNEL: [linux-yocto, linux-yocto-rt] |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 227 | TOOLCHAINS: [gcc, clang] |
| 228 | TCLIBC: [glibc, musl] |
| 229 | TESTING: testimage |
| 230 | - TOOLCHAINS: external-gccarm |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 231 | TESTING: testimage |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 232 | - KERNEL: linux-yocto-dev |
| 233 | TESTING: testimage |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 234 | |
| 235 | qemuarm: |
| 236 | extends: .build |
| 237 | parallel: |
| 238 | matrix: |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 239 | - DISTRO: poky |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 240 | KERNEL: [linux-yocto, linux-yocto-rt] |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 241 | TOOLCHAINS: [gcc, clang] |
| 242 | FIRMWARE: [u-boot, edk2] |
| 243 | TESTING: testimage |
| 244 | - DISTRO: poky-tiny |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 245 | TESTING: testimage |
| 246 | - VIRT: xen |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 247 | - KERNEL: linux-yocto-dev |
| 248 | TESTING: testimage |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 249 | |
| 250 | qemuarmv5: |
| 251 | extends: .build |
| 252 | parallel: |
| 253 | matrix: |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 254 | - DISTRO: poky |
| 255 | KERNEL: [linux-yocto, linux-yocto-dev, linux-yocto-rt] |
| 256 | TESTING: testimage |
| 257 | - DISTRO: poky-tiny |
| 258 | TESTING: testimage |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 259 | |
| 260 | sgi575: |
| 261 | extends: .build |
| 262 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 263 | toolchains: |
| 264 | extends: .build |
| 265 | |
| 266 | selftest: |
| 267 | extends: .setup |
| 268 | script: |
Andrew Geissler | 23e0279 | 2023-07-21 09:06:10 -0500 | [diff] [blame] | 269 | - KASFILES=./ci/qemuarm64.yml:./ci/selftest.yml:lockfile.yml |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 270 | - kas shell --update --force-checkout $KASFILES -c 'oe-selftest --num-processes 2 --select-tag meta-arm --run-all-tests' |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 271 | |
| 272 | # Validate layers are Yocto Project Compatible |
| 273 | check-layers: |
| 274 | extends: .setup |
| 275 | script: |
Andrew Geissler | 23e0279 | 2023-07-21 09:06:10 -0500 | [diff] [blame] | 276 | - kas shell --update --force-checkout ci/base.yml:ci/meta-openembedded.yml:lockfile.yml --command \ |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 277 | "yocto-check-layer-wrapper $CI_PROJECT_DIR/$LAYER --dependency $CI_PROJECT_DIR/meta-* $KAS_WORK_DIR/meta-openembedded/meta-oe --no-auto-dependency" |
| 278 | parallel: |
| 279 | matrix: |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 280 | - LAYER: [meta-arm, meta-arm-bsp, meta-arm-toolchain] |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 281 | |
| 282 | pending-updates: |
| 283 | extends: .setup |
| 284 | artifacts: |
| 285 | paths: |
| 286 | - update-report |
| 287 | script: |
| 288 | - rm -fr update-report |
| 289 | # This configuration has all of the layers we need enabled |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 290 | - kas shell --update --force-checkout ci/qemuarm64.yml:ci/meta-openembedded.yml:ci/meta-secure-core.yml:lockfile.yml --command \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 291 | "$CI_PROJECT_DIR/scripts/machine-summary.py -t report -o $CI_PROJECT_DIR/update-report $($CI_PROJECT_DIR/ci/listmachines.py meta-arm meta-arm-bsp)" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 292 | # Do this on x86 whilst the compilers are x86-only |
| 293 | tags: |
| 294 | - x86_64 |
| 295 | |
| 296 | # What percentage of machines in the layer do we build |
| 297 | machine-coverage: |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 298 | extends: .setup |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 299 | script: |
| 300 | - ./ci/check-machine-coverage |
| 301 | coverage: '/Coverage: \d+/' |
| 302 | |
| 303 | metrics: |
| 304 | extends: .setup |
| 305 | artifacts: |
| 306 | reports: |
| 307 | metrics: metrics.txt |
| 308 | script: |
| 309 | - kas shell --update --force-checkout ci/base.yml --command \ |
| 310 | "$CI_PROJECT_DIR/ci/patchreview $CI_PROJECT_DIR/meta-* --verbose --metrics $CI_PROJECT_DIR/metrics.txt" |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 311 | |
| 312 | documentation: |
| 313 | extends: .setup |
| 314 | script: |
| 315 | - | |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 316 | # This can be removed when the kas container has python3-venv installed |
| 317 | sudo apt-get update && sudo apt-get install --yes python3-venv |
| 318 | |
| 319 | python3 -m venv venv |
| 320 | . ./venv/bin/activate |
| 321 | |
| 322 | pip3 install -r meta-arm-bsp/documentation/requirements.txt |
| 323 | |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 324 | for CONF in meta-*/documentation/*/conf.py ; do |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 325 | echo Building $CONF... |
Patrick Williams | 2390b1b | 2022-11-03 13:47:49 -0500 | [diff] [blame] | 326 | SOURCE_DIR=$(dirname $CONF) |
| 327 | MACHINE=$(basename $SOURCE_DIR) |
| 328 | sphinx-build -vW $SOURCE_DIR build-docs/$MACHINE |
| 329 | done |
| 330 | test -d build-docs/ |
| 331 | artifacts: |
| 332 | paths: |
| 333 | - build-docs/ |