core-admin/.gitlab-ci.yml
Marek Marczykowski-Górecki 8b321e8fb0
gitlab-ci: install dependencies via dnf
Make them available system-wide, not only in user home - needed to call
some of the code via sudo in tests.
2020-11-26 05:13:38 +01:00

30 lines
941 B
YAML

include:
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.1/gitlab-base.yml'
- project: 'QubesOS/qubes-continuous-integration'
file: '/r4.1/gitlab-dom0.yml'
checks:pylint:
stage: checks
before_script:
- sudo dnf install -y python3-pip
- git clone https://github.com/QubesOS/qubes-core-qrexec ~/qubes-core-qrexec
- pip3 install --quiet -r ci/requirements.txt
script:
- PYTHONPATH=test-packages:~/qubes-core-qrexec python3 -m pylint qubes
checks:tests:
stage: checks
tags:
- short-living-job
- vm-runner
before_script:
# vim-common for xxd
- sudo dnf install -y lvm2 vim-common python3-lxml python3-docutils
- git clone https://github.com/QubesOS/qubes-core-qrexec ~/qubes-core-qrexec
- pip3 install --user --quiet -r ci/requirements.txt
script:
- PYTHONPATH=test-packages:~/qubes-core-qrexec ./run-tests
after_script:
- ci/codecov-wrapper -F unittests