From 085cf8649745489cfd9d2e1350bbc56dc71f4868 Mon Sep 17 00:00:00 2001 From: Mohd Husaam Mehdi <husaam.mehdi@iopsys.eu> Date: Mon, 23 Dec 2024 10:48:54 +0530 Subject: [PATCH] ebtables-extensions: add gitlab CI/CD pipeline conf file --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..76c97b9 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +variables: + SOURCE_FOLDER: "src" + +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 -- GitLab