File: .gitlab-ci.yml

package info (click to toggle)
pubpaste 0.9.0
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 180 kB
  • sloc: python: 1,094; makefile: 3
file content (46 lines) | stat: -rw-r--r-- 1,018 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
42
43
44
45
46
variables:
  LC_ALL: "C.UTF-8"
  LANG: "C.UTF-8"

# We use a job template to avoid mindless repetition.  All of our jobs
# run 'tox', and we vary which tox environment they run or which
# Python version they use by overriding the 'TOXENV' environment
# variable or the 'image' job parameter.
#
# The name of the template starts with a dot to prevent GitLab from
# running it as an actual job.
.tox:
  image: python:latest
  before_script:
    - pip install tox
  script:
    - tox
  variables:
    TOXENV: py
    # The environment 'py' uses the version of Python used to invoke tox,
    # which allows us to test various Python versions by changing the
    # Docker image version in use.

flake8:
  extends: .tox
  variables:
    TOXENV: flake8

black:
  extends: .tox
  variables:
    TOXENV: black

mypy:
  extends: .tox
  variables:
    TOXENV: mypy

codespell:
  image:
    name: debian:stable
  before_script:
    - apt update
    - apt install -qy codespell
  script:
    - codespell --ignore-words-list=sigal *