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: ...@@ -28,43 +28,16 @@ flawfinder:
script: script:
- make -C software/tools flawfinder - make -C software/tools flawfinder
.script_fetch_kernel_dep: &script_fetch_kernel_dep kernel_build_cc7:
- git clone --depth 1 https://gitlab.cern.ch/cohtdrivers/coht.git ~/git/coht extends: .kernel_build_cc7
- 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
variables: variables:
KERNELSRC: /usr/src/kernels/*/ EDL_CI_KBUILD_PATHS: software/kernel
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
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 - |
script: echo "Checking Dependencies"
- source /linux-versions.sh 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
- fetch $VERSION && prepare $VERSION && export KERNELSRC=$(linux $VERSION) if [ "$FMC_BUILDS" != "0" ]; then echo 'FMC did not build successfully. Exiting'; exit 1; fi
- *script_build_kernel_dep if [ "$ZIO_BUILDS" != "0" ]; then echo 'ZIO did not build successfully. Exiting'; exit 1; fi
- 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