include:
  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml

debputy-reformat:
  stage: test
  image: debian:unstable-slim
  script:
    - apt-get update -qq
    - apt-get install -qq --yes debputy-lsp
    - debputy reformat --linter-exit-code --no-auto-fix
  except:
    variables:
      - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/

variables:
  SALSA_CI_DISABLE_BUILD_PACKAGE_TWICE: 0
  SALSA_CI_DISABLE_EXPORTORIG_FALLBACK: 1
  SALSA_CI_REPROTEST_ENABLE_DIFFOSCOPE: 1
  SALSA_CI_AUTOPKGTEST_ALLOWED_EXIT_STATUS: '0'
