Commit 139d885b authored by Vaibhav Gupta's avatar Vaibhav Gupta

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

With project evergreen's CI/CD templates and includes, it is much easier
to build CI/Cd of other projects with simple .gitlab-ci.yml file.
Signed-off-by: 's avatarVaibhav Gupta <vaibhav.gupta@cern.ch>
parent 8bea55ab
......@@ -19,35 +19,21 @@ cppcheck:
script:
- make -C software cppcheck
.script_fetch_kernel_dep: &script_fetch_kernel_dep
.script_build_kernel_dep: &script_build_kernel_dep
- git clone --depth 1 https://gitlab.cern.ch/fvaga/fpga-manager.git ~/git/fpga-mgr
- export FPGA_MGR=~/git/fpga-mgr
- git clone -b v1.1.5 --depth 1 https://ohwr.org/project/fmc-sw.git ~/git/fmc
- export FMC=~/git/fmc
- git clone --depth 1 https://ohwr.org/project/general-cores.git ~/git/general-cores/
- export SPI=~/git/general-cores/software/spi-ocores
- export I2C=~/git/general-cores/software/i2c-ocores
.script_build_kernel_dep: &script_build_kernel_dep
- make -C $FPGA_MGR all
- make -C $FMC/drivers/fmc all
build-centos-7:
stage: build
kernel_build_cc7:
extends: .kernel_build_cc7
variables:
CONFIG_FPGA_MGR_BACKPORT: y
KERNELSRC: /usr/src/kernels/*/
image:
name: gitlab-registry.cern.ch/coht/common-containers/build-centos-7:latest
EDL_CI_KBUILD_PATHS: software/kernel
before_script:
- *script_fetch_kernel_dep
- *script_build_kernel_dep
script:
- make -C software
kernel_build_validation:
extends: .kernel_build_validation
before_script:
- export CONFIG_FPGA_MGR_BACKPORT=n
- *script_fetch_kernel_dep
- *script_build_kernel_dep
- |
echo "Checking Dependencies"
if [ "$FMC_BUILDS" != "0" ]; then echo 'FMC 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