File: .gitlab-ci.yml

package info (click to toggle)
debputy-lsp 0.2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 48 kB
  • sloc: sh: 3; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,318 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# TODO: Figure out if we can reuse these jobs but run them after our own checks without having
#  to manually merge `stages`.
include:
  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml

stages:
  - ci-test
  - provisioning
  - build
  - publish
  - test

variables:
  SALSA_CI_DISABLE_WRAP_AND_SORT: 1
  SALSA_CI_DISABLE_APTLY: 0

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

debputy-lint:
  stage: ci-test
  image: debian:sid-slim
  script:
    - apt-get update -qq && apt-get -qq install --yes debputy python3-lsprotocol python3-levenshtein python3-junit.xml
    - debputy lint --lint-report-format=junit4-xml --report-output debputy-lint-report.xml
    # Mostly just for the validation that --spellcheck does not crash
    - debputy lint --spellcheck
  except:
    variables:
      - $CI_COMMIT_TAG != null && $SALSA_CI_ENABLE_PIPELINE_ON_TAGS !~ /^(1|yes|true)$/
  artifacts:
    reports:
      junit: debputy-lint-report.xml