Skip to content

Commit

Permalink
update gitlab ci
Browse files Browse the repository at this point in the history
  • Loading branch information
clovisgakam committed Jun 25, 2021
1 parent 9e2daa1 commit 13df41f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .gitlab-ci.yml
Expand Up @@ -137,14 +137,13 @@ Lint:Ledgers_yaml_json_xml:
- master
script:
- apt-get update && apt-get install jsonlint yamllint libxml2-utils make curl -yq && ln -s /usr/bin/jsonlint-php /usr/bin/jsonlint
- curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
- echo "Run OBA backend lint"
- echo "Run Ledgers backend lint"
- find ./ -type f -name "*.json" -exec jsonlint -q {} \; # lint all json
# commented cause get many small errors for yaml with spaces empty lines and etc
# - find ./ -type f \( -name "*.yml" -o -name "*.yaml" \) -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 160}}}" {} \;
# commented cause get error Unsupported version '1.1'
# - find ./ -type f \( -iname "*.xml" ! -iname pom.xml \) -exec xmllint --noout {} \;
- docker run --rm -i hadolint/hadolint < Dockerfile
# commented cause get many small errors for yaml with spaces empty lines and etc
# - find ./ -type f \( -name "*.yml" -o -name "*.yaml" \) -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 160}}}" {} \;
# commented cause get error Unsupported version '1.1'
# - find ./ -type f \( -iname "*.xml" ! -iname pom.xml \) -exec xmllint --noout {} \;


Lint:PMD_CPD_Report:
image: maven:3.6-jdk-11-slim
Expand Down

0 comments on commit 13df41f

Please sign in to comment.