Commit c27911bc authored by Federico Vaga's avatar Federico Vaga

bld: move dependencies cloning to build target

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 1fcfae80
......@@ -2,19 +2,6 @@
#
# SPDX-FileCopyrightText: 2020 CERN
before_script:
- yum install -y python3 python36-PyYAML
- git clone https://gitlab.cern.ch/cohtdrivers/cheby.git ~/git/cheby
- export CHEBY=~/git/cheby/proto/cheby.py
- git clone https://gitlab.cern.ch/fvaga/fpga-manager.git ~/git/fpga-mgr
- export FPGA_MGR=~/git/fpga-mgr
- export CONFIG_FPGA_MGR_BACKPORT=y
- git clone https://gitlab.cern.ch/coht/fmc.git ~/git/fmc
- export FMC=~/git/fmc
- git clone --branch proposed_master 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
stages:
- static-analysis
- build
......@@ -29,11 +16,11 @@ reuse:
- reuse lint
allow_failure: true
cppcheck:
stage: static-analysis
script:
- yum install -y cppcheck
- make -C software cppcheck
# cppcheck:
# stage: static-analysis
# script:
# - yum install -y cppcheck
# - make -C software cppcheck
documentation:
stage: build
......@@ -45,14 +32,19 @@ documentation:
build:
stage: build
before_script:
- yum install -y python3 python36-PyYAML kernel-devel
- git clone https://gitlab.cern.ch/cohtdrivers/cheby.git ~/git/cheby
- export CHEBY=~/git/cheby/proto/cheby.py
- git clone https://gitlab.cern.ch/fvaga/fpga-manager.git ~/git/fpga-mgr
- export FPGA_MGR=~/git/fpga-mgr
- export CONFIG_FPGA_MGR_BACKPORT=y
- git clone https://gitlab.cern.ch/coht/fmc.git ~/git/fmc
- export FMC=~/git/fmc
- git clone --branch proposed_master 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:
- yum install -y kernel-devel
- LINUX=/usr/src/kernels/*/ make -C $FPGA_MGR all
- LINUX=/usr/src/kernels/*/ make -C $FMC/drivers/fmc all
- LINUX=/usr/src/kernels/*/ make -C software
build_dkms_rpm:
stage: dkms
script:
- yum install -y dkms
- make -C distribution dkms-rpm
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