forked from kalkin/qubes-desktop-linux-manager
-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
.gitlab-ci.yml
39 lines (37 loc) · 1.73 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
include:
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.2/gitlab-base.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.2/gitlab-host.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.2/gitlab-vm.yml'
checks:tests:
stage: checks
variables:
PYTEST_ADDOPTS: "--color=yes"
before_script: &before-script
- "PATH=$PATH:$HOME/.local/bin"
- sudo dnf install -y python3-gobject gtk3 python3-pytest gtksourceview4
python3-coverage xorg-x11-server-Xvfb python3-pip
- pip3 install --quiet -r ci/requirements.txt
- git clone https://github.com/QubesOS/qubes-core-admin-client ~/core-admin-client
- git clone https://github.com/QubesOS/qubes-core-qrexec ~/core-qrexec
script:
- PYTHONPATH=~/core-admin-client:~/core-qrexec xvfb-run ./run-tests.sh
after_script:
- "PATH=$PATH:$HOME/.local/bin"
- ci/codecov-wrapper
checks:pylint:
before_script:
- sudo dnf install -y python3-gobject gtk3 xorg-x11-server-Xvfb python3-mypy gtksourceview4 python3-pip curl
- pip3 install --quiet -r ci/requirements.txt
- mypy --install-types --non-interactive
# remove when https://github.com/pylint-dev/astroid/issues/2190 is fixed
- file_to_patch=$(python3 -c 'import astroid.builder;print(astroid.builder.__file__)') &&
curl -sSL https://github.com/QubesOS/qubes-continuous-integration/raw/main/scripts/pylint-astroid-workaround-2190.patch | sudo patch "$file_to_patch"
- git clone https://github.com/QubesOS/qubes-core-admin-client ~/core-admin-client
- git clone https://github.com/QubesOS/qubes-core-qrexec ~/core-qrexec
script:
- PYTHONPATH=~/core-admin-client:~/core-qrexec python3 -m pylint --rcfile=.pylintrc qui qubes_config
- mypy
stage: checks