-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
77 lines (69 loc) · 1.51 KB
/
.gitlab-ci.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# SPDX-FileCopyrightText: 2021 GNOME Foundation
#
# SPDX-License-Identifier: CC0-1.0
stages:
- build
- check
- deploy
#meson-build:
# stage: build
# needs: []
# script:
# - dnf install -y meson ninja-build pytest python3-flake8 python3-mypy python3-markdown python3-jinja2 python3-toml python3-typogrify
# - meson _build .
# - meson test -C _build
#
#pip-build:
# stage: build
# needs: []
# script:
# - dnf install -y python3-pip
# - python3 -m pip install --user -e .
.pip:
image: fedora:latest
before_script:
- export PATH="$HOME/.local/bin:$PATH"
- dnf install -y python3-pip
pytest:
stage: check
needs: []
image: fedora:latest
script:
- dnf install -y pytest python3-markdown python3-jinja2 python3-pygments python3-toml python3-typogrify
- pytest --verbose
flake8:
stage: check
needs: []
image: fedora:latest
script:
- dnf install -y python3-flake8
- flake8 --ignore E501,E402,F405,W503 --show-source gidocgen
mypy:
stage: check
needs: []
image: fedora:latest
script:
- dnf install -y python3-mypy
- mypy --ignore-missing-imports --disallow-incomplete-defs gidocgen
allow_failure: true
reuse:
extends: .pip
stage: check
needs: []
script:
- pip install --user reuse
- reuse lint
pages:
extends: .pip
stage: deploy
needs: []
script:
- pip install --user sphinx sphinx_rtd_theme
- cd docs
- python3 -m sphinx -b html . _build
- mv _build ../public
artifacts:
paths:
- public
only:
- main