Commit 40aff8e1 authored by Vaibhav Gupta's avatar Vaibhav Gupta

CI/CD: Use project evergreen's template for validation

Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent 5a3632ed
......@@ -28,35 +28,14 @@ flawfinder:
script:
- make -C software/tools flawfinder
.script_fetch_kernel_dep: &script_fetch_kernel_dep
- git clone --depth 1 https://gitlab.cern.ch/cohtdrivers/coht.git ~/git/coht
- export VMEBUS=~/git/coht/vmebridge-ng
- git clone -b v1.1.5 --depth 1 https://ohwr.org/project/fmc-sw.git ~/git/fmc
- export FMC=~/git/fmc
- git clone -b v1.4.4 --depth 1 https://ohwr.org/project/zio.git ~/git/zio
- export ZIO=~/git/zio
.script_build_kernel_dep: &script_build_kernel_dep
- make -C $FMC/drivers/fmc all
- make -C $ZIO/drivers/zio all
kernel_build_cc7:
extends: .kernel_build_cc7
variables:
EDL_CI_KBUILD_PATHS: software/kernel
build-kernel:
stage: build
allow_failure: true
image:
name: gitlab-registry.cern.ch/coht/common-containers/build-kernel:latest
parallel:
matrix:
- VERSION: [5.10.149, 5.15.74]
kernel_build_validation:
extends: .kernel_build_validation
before_script:
- *script_fetch_kernel_dep
script:
- source /linux-versions.sh
- fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION)
- *script_build_kernel_dep
- make -C software/kernel all
- if [ "$VMEBRIDGE_BUILDS" != "0" ]; then export CONFIG_VME=n; echo 'VMEBRIDGE did not build successfully. Thus, VME support will not be available.'; else export CONFIG_VME=y; fi
- if [ "$FMC_BUILDS" != "0" ]; then echo 'FMC did not build successfully. Exiting'; exit 1; fi
- if [ "$ZIO_BUILDS" != "0" ]; then echo 'ZIO did not build successfully. Exiting'; exit 1; fi
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