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

ci: use cern gitlab-ci

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent d843844e
...@@ -5,28 +5,21 @@ ...@@ -5,28 +5,21 @@
variables: variables:
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
stages: include:
- static-analysis - project: 'be-cem-edl/evergreen/gitlab-ci'
- build ref: master
file:
reuse: - 'edl-gitlab-ci.yml'
stage: static-analysis
image:
name: fsfe/reuse:latest
entrypoint: [""]
script:
- reuse lint
allow_failure: true
cppcheck: cppcheck:
stage: static-analysis stage: analyse
image: image:
name: gitlab-registry.cern.ch/coht/common-containers/static-analysis:latest name: gitlab-registry.cern.ch/coht/common-containers/static-analysis:latest
script: script:
- make -C software cppcheck - make -C software cppcheck
flawfinder: flawfinder:
stage: static-analysis stage: analyse
image: image:
name: gitlab-registry.cern.ch/coht/common-containers/static-analysis:latest name: gitlab-registry.cern.ch/coht/common-containers/static-analysis:latest
script: script:
...@@ -38,6 +31,11 @@ documentation: ...@@ -38,6 +31,11 @@ documentation:
name: gitlab-registry.cern.ch/coht/common-containers/documentation:latest name: gitlab-registry.cern.ch/coht/common-containers/documentation:latest
script: script:
- make -C doc html - make -C doc html
- mkdir -p $EDL_CI_EOS_OUTPUT_DIR
- cp -a doc/_build/html/* $EDL_CI_EOS_OUTPUT_DIR
artifacts:
paths:
- $EDL_CI_EOS_OUTPUT_DIR
.script_fetch_kernel_dep: &script_fetch_kernel_dep .script_fetch_kernel_dep: &script_fetch_kernel_dep
- git clone --depth 1 https://gitlab.cern.ch/cohtdrivers/coht.git ~/git/coht - git clone --depth 1 https://gitlab.cern.ch/cohtdrivers/coht.git ~/git/coht
...@@ -69,32 +67,18 @@ build-centos-7: ...@@ -69,32 +67,18 @@ build-centos-7:
- *script_build_kernel_dep - *script_build_kernel_dep
- make -C software/kernel all - make -C software/kernel all
build-kernel-5.4.207: build-kernel:
stage: build stage: build
allow_failure: true allow_failure: true
variables:
VERSION: 5.4.207
image: image:
name: gitlab-registry.cern.ch/coht/common-containers/build-kernel:latest 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_fetch_kernel_dep
script: script:
- *script_build_kernel_ver - source /linux-versions.sh
- fetch $VERSION && prepare $VERSION && export LINUX=$(linux $VERSION) && export KERNELSRC=$(linux $VERSION)
.script_build_kernel_ver: &script_build_kernel_ver - *script_build_kernel_dep
- source /linux-versions.sh - make -C software/kernel all
- fetch $VERSION && prepare $VERSION && export LINUX=$(linux $VERSION)
- *script_build_kernel_dep
- make -C software/kernel all
build-kernel-5.10.132:
stage: build
allow_failure: true
variables:
VERSION: 5.10.132
image:
name: gitlab-registry.cern.ch/coht/common-containers/build-kernel:latest
before_script:
- *script_fetch_kernel_dep
script:
- *script_build_kernel_ver
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