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: ...@@ -28,35 +28,14 @@ flawfinder:
script: script:
- make -C software/tools flawfinder - 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: kernel_build_cc7:
extends: .kernel_build_cc7 extends: .kernel_build_cc7
variables: variables:
EDL_CI_KBUILD_PATHS: software/kernel EDL_CI_KBUILD_PATHS: software/kernel
build-kernel: kernel_build_validation:
stage: build extends: .kernel_build_validation
allow_failure: true
image:
name: gitlab-registry.cern.ch/coht/common-containers/build-kernel:latest
parallel:
matrix:
- VERSION: [5.10.149, 5.15.74]
before_script: before_script:
- *script_fetch_kernel_dep - 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
script: - if [ "$FMC_BUILDS" != "0" ]; then echo 'FMC did not build successfully. Exiting'; exit 1; fi
- source /linux-versions.sh - if [ "$ZIO_BUILDS" != "0" ]; then echo 'ZIO did not build successfully. Exiting'; exit 1; fi
- fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION)
- *script_build_kernel_dep
- make -C software/kernel all
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