Commit 9a190948 authored by Federico Vaga's avatar Federico Vaga

Merge branch '47-use-latest-ci-infrastructure-for-the-builds' into 'master'

Resolve "Use latest CI infrastructure for the builds"

Closes #47

See merge request be-cem-edl/fec/hardware-modules/fmc-adc-100m14b4cha!14
parents 1e232a63 5b5a1548
......@@ -28,43 +28,16 @@ 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
build-centos-7:
stage: build
kernel_build_cc7:
extends: .kernel_build_cc7
variables:
KERNELSRC: /usr/src/kernels/*/
image:
name: gitlab-registry.cern.ch/coht/common-containers/build-centos-7:latest
before_script:
- *script_fetch_kernel_dep
- *script_build_kernel_dep
script:
- export KERNELSRC=/usr/src/kernels/*/
- make -C software
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
- |
echo "Checking Dependencies"
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