Commit c942d93d authored by Federico Falconieri's avatar Federico Falconieri
Browse files

style: fixed yamllint complaints

parent 491ebe5c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
---
variables:
  PYTHON_PACKAGE: "templates_tests/python/mypackage"

@@ -38,7 +39,8 @@ python:pytest:
    # We need to move here so it's added to PYTHONPATH
    - cd templates_tests/python
  variables:
    # Not happy with this, but we need it so --cov works, without breaking other jobs
    # Not happy with this, but we need it so --cov works
    # without breaking other jobs
    PYTHON_PACKAGE: mypackage

c:cppcheck:
+5 −1
Original line number Diff line number Diff line
---
# This job will create or update a version badge containing the latest tag.
# It requires a Project Access Token set as a CI/CD variable called GL_TOKEN
# Also make sure you have set a protected tags wildcard as "v*"
# If you want to disable badges, set a global variable called "I_DONT_LIKE_BADGES"
# If you want to disable badges,
# set a global variable called "I_DONT_LIKE_BADGES"

# yamllint disable rule:line-length

semantic-release:badge:
  image: bash:latest
+5 −1
Original line number Diff line number Diff line
---
# https://github.com/semantic-release/semantic-release#commit-message-format
# https://levelup.gitconnected.com/semantic-versioning-and-release-automation-on-gitlab-9ba16af0c21

# yamllint disable rule:line-length

semantic-release:
  image: registry.gitlab.com/notno/semantic-release-gitlab:latest
  stage: .post
  variables:
    PLUGINS: "@semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/gitlab"
    EXTRA_ARGS: ""  # See https://semantic-release.gitbook.io/semantic-release/usage/configuration
    # See https://semantic-release.gitbook.io/semantic-release/usage/configuration
    EXTRA_ARGS: ""
  script:
    - semantic-release ${EXTRA_ARGS} --plugins $PLUGINS
  rules:
+6 −2
Original line number Diff line number Diff line
---
c:cppcheck:
  stage: test
  image: registry.gitlab.com/notno/test/c:latest
@@ -8,9 +9,12 @@ c:cppcheck:
    ENABLE: "all"
    ERROR_EXIT_CODE: 1  # Which exit code on failure
  script:
    - cppcheck --xml-version=2 ${DEFAULT_ARGS} ${EXTRA_ARGS} --enable=${ENABLE} --error-exitcode=0 ${CHECK_PATH} 2> cppcheck-result.xml
    - cppcheck \
        --xml-version=2 ${DEFAULT_ARGS} ${EXTRA_ARGS} --enable=${ENABLE} \
        --error-exitcode=0 ${CHECK_PATH} 2> cppcheck-result.xml
    - cppcheck_junit cppcheck-result.xml cppcheck-junit.xml
    - cppcheck ${EXTRA_ARGS} --enable=${ENABLE} --error-exitcode=${ERROR_EXIT_CODE} ${CHECK_PATH}
    - cppcheck ${EXTRA_ARGS} --enable=${ENABLE} \
        --error-exitcode=${ERROR_EXIT_CODE} ${CHECK_PATH}
  needs: []
  artifacts:
    reports:
+7 −1
Original line number Diff line number Diff line
---
c:flawfinder:
  stage: test
  image: registry.gitlab.com/notno/test/c:latest
@@ -8,5 +9,10 @@ c:flawfinder:
    EXTRA_ARGS: ""
    CHECK_PATH: "."  # Can be a file
  script:
    - flawfinder ${DEFAULT_ARGS} ${EXTRA_ARGS} --minlevel ${MIN_LEVEL} --error-level=${ERROR_LEVEL} ${CHECK_PATH}
    - flawfinder \
      ${DEFAULT_ARGS} \
      ${EXTRA_ARGS} \
      --minlevel ${MIN_LEVEL} \
      --error-level=${ERROR_LEVEL} \
      ${CHECK_PATH}
  needs: []
Loading