File: .gitlab-ci.yml

package info (click to toggle)
dh-python 7.20260125
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,592 kB
  • sloc: python: 6,493; makefile: 605; perl: 251; sh: 36
file content (37 lines) | stat: -rw-r--r-- 1,024 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
default:
  image: debian:unstable

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
    - if: $CI_COMMIT_TAG
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

tests:
  before_script:
  - apt-get update
  - apt-get -y install --no-install-recommends build-essential debhelper fakeroot flit libjs-jquery python3-all python3-all-dbg python3-all-dev python3-build python3-installer python3-nose2 python3-poetry-core python3-pytest python3-setuptools python3-cachy tox

  script:
  - make tests
  - echo -e '#!/bin/sh\nset -eu\nmake "$@"' > debian/tests/run-installed
  - export DH_PYTHON_DIST=$PWD/pydist
  - ./debian/tests/dh-python
  - ./debian/tests/pybuild

style:
  before_script:
  - apt-get update
  - apt-get -y install --no-install-recommends black make pylint

  script:
  - pylint dhpython dh_python3 pybuild
  - make black BLACK_ARGS=--check

typecheck:
  before_script:
  - apt-get update
  - apt-get -y install --no-install-recommends python3-installer mypy make

  script:
  - make mypy