From 23ac63956fae5462b28c4f6897e95d31d1f873ed Mon Sep 17 00:00:00 2001 From: donker <donker@astron.nl> Date: Thu, 23 Mar 2023 14:59:34 +0100 Subject: [PATCH] CWG-44, add readme and changed checks --- .gitlab-ci.yml | 25 +++++++------------------ readme.md | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+), 18 deletions(-) create mode 100644 readme.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db7be39e6d..3eec784412 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,7 +40,7 @@ lint-vhdl-lib-base: - pip3 install vsg --use-pep517 script: - cd libraries/base - - find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; + - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \; lint-vhdl-lib-dsp: tags: @@ -51,7 +51,7 @@ lint-vhdl-lib-dsp: - pip3 install vsg --use-pep517 script: - cd libraries/dsp - - find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; + - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \; lint-vhdl-lib-io: tags: @@ -62,7 +62,7 @@ lint-vhdl-lib-io: - pip3 install vsg --use-pep517 script: - cd libraries/io - - find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; + - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \; lint-vhdl-lib-technology: tags: @@ -73,7 +73,7 @@ lint-vhdl-lib-technology: - pip3 install vsg --use-pep517 script: - cd libraries/technology - - find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; + - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \; lint-vhdl-boards-uniboard2b: tags: @@ -84,7 +84,7 @@ lint-vhdl-boards-uniboard2b: - pip3 install vsg --use-pep517 script: - cd boards/uniboard2b - - find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; + - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \; lint-vhdl-boards-uniboard2c: tags: @@ -95,18 +95,7 @@ lint-vhdl-boards-uniboard2c: - pip3 install vsg --use-pep517 script: - cd boards/uniboard2c - - find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; - -lint-vhdl-applications-disturb2: - tags: - - hdl - stage: linting - allow_failure: true - before_script: - - pip3 install vsg --use-pep517 - script: - - cd applications/disturb2 - - find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; + - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \; lint-vhdl-applications-lofar2: tags: @@ -117,7 +106,7 @@ lint-vhdl-applications-lofar2: - pip3 install vsg --use-pep517 script: - cd applications/lofar2 - - find . -name "*.vhd" -exec vsg --configuration ../../vsg_config.yaml -f {} \; + - find . -name "*.vhd" -exec vsg -c ../../vsg_config.yaml -f {} \; ############################################################################### # HDL simulation stage diff --git a/readme.md b/readme.md new file mode 100644 index 0000000000..596433603b --- /dev/null +++ b/readme.md @@ -0,0 +1,18 @@ +# Gitlab CI/CD + +HDL linting is using *gitlab-runners* on *dop349*. + +Linting tool used is *vhdl-style-guide* (VSG) + +link: https://vhdl-style-guide.readthedocs.io/en/latest/index.html + +##### Linting settings. + +By default all rules are disabled in de *vsg_config.yaml* file. + +The only active rule on this moment is *case.keyword* and is set to *upper*. + + + + + -- GitLab