diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db7be39e6d85fc2dddb627d1553006991d836e51..3eec78441255290a23c74d00c8305dc22868c791 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 0000000000000000000000000000000000000000..596433603b54df86df2a5ffaad5c34fe7cc161f3 --- /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*. + + + + +