Skip to content
Snippets Groups Projects
Commit 20946c43 authored by Husaam Mehdi's avatar Husaam Mehdi
Browse files

ebtables-extension: fix pipeline

parent 085cf864
Branches for_pipeline
No related tags found
1 merge request!10ebtables-extension: fix pipeline
Pipeline #190356 failed
variables:
SOURCE_FOLDER: "src"
FLAWFINDER_OPTIONS: "-m 4 --error-level=5"
CPPCHECK_OPTIONS: "--suppress=cert-MSC24-C"
COMPILATION_FIXUP: "echo '[{\"dont\": \"compile\"}]' > compile_commands.json"
include:
- project: 'iopsys/gitlab-ci-pipeline'
file: '/static-code-analysis.yml'
ref: '1.2'
# override original, because we cannot compile here
# because this is a kernel module and kernel headers
# are not available in the docker image
run_static_code_analysis:
image: ${COMMON_IMAGE}
stage: static_code_analysis
allow_failure: false
script:
- /usr/local/pmd/bin/run.sh cpd --language c --exclude ./test/ ${CPD_OPTIONS} --files ${SOURCE_FOLDER}
- flawfinder --minlevel 4 --error-level=4 ${FLAWFINDER_OPTIONS} ${SOURCE_FOLDER}
rules:
- if: $SOURCE_FOLDER
when: always
artifacts:
when: on_failure
paths:
- report.txt
stages:
- static_code_analysis
#!/bin/bash
set -e
echo "build stage"
pwd
make -C /lib/modules/$(uname -r)/build M=$(pwd)
#!/bin/bash
echo "install dependencies"
#sudo apt-get update # This will update the repositories list
#sudo apt-get upgrade # This will update all the necessary packages on your system
#sudo apt-get dist-upgrade # This will add/remove any needed packages
#sudo apt-get -y install linux-headers-$(uname -r)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment