Commit f1807b56 authored by Amro Hassaan's avatar Amro Hassaan
Browse files

enable ubuntu distro test on scp

parent 935a1b81
......@@ -3,6 +3,10 @@ workflow:
- if: '$CI_PROJECT_PATH != "morello/morello-ci-pipelines"'
when: always
stages:
- build
- test
build-scp:
image: ${CI_REGISTRY}/morello/morello-ci-containers/morello-firmware
variables:
......@@ -19,4 +23,18 @@ build-scp:
- "scp-ram.bin"
- "scp-rom.bin"
- "SHA256SUMS.txt"
- "output/fvp/firmware/*.bin"
expire_in: 5 days
reports:
dotenv: build.env
test-ubuntu:
image: ${CI_REGISTRY}/morello/morello-ci-containers/morello-lava
stage: test
script:
- source <(curl -s https://git.morello-project.org/morello/morello-ci-pipelines/-/raw/main/.gitlab-ci/environment.sh)
- time ./.gitlab-ci/${CI_JOB_STAGE}/test.sh
needs:
- job: build-scp
tags:
- arm64
......@@ -40,7 +40,16 @@ sed -i "s|^ \[checksum_url\]=.*| \[checksum_url\]=\"\"|" build-scripts/fet
time bash -x ./build-scripts/fetch-tools.sh -f none
time bash -x ./build-scripts/build-scp.sh -f none
# Build rest of firmware for ubuntu distro testing
time bash -x ./build-scripts/build-uefi.sh -f none
time bash -x ./build-scripts/build-arm-tf.sh -f none
time bash -x ./build-scripts/build-firmware-image.sh -f none
cp -a output/fvp/intermediates/*cp-*.bin ${CI_PROJECT_DIR}
# Create SHA256SUMS.txt file
sha256sum *.bin > SHA256SUMS.txt
sha256sum *.bin output/fvp/firmware/*.bin > SHA256SUMS.txt
echo "BUILD_JOB_ID=${CI_JOB_ID}" > ${CI_PROJECT_DIR}/build.env
echo "LAVA_TEMPLATE_NAME=fvp-ubuntu.yaml" >> ${CI_PROJECT_DIR}/build.env
cat ${CI_PROJECT_DIR}/build.env
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment