aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorErik Skultety <eskultet@redhat.com>2023-03-29 18:22:52 +0200
committerDaniel P. Berrangé <berrange@redhat.com>2023-04-28 10:05:23 +0000
commit05632b762666b97b90fd2aebdd59203b7f1befdc (patch)
tree1856fc4d9706fffa761be83469d3e0c6902d6540 /.gitlab-ci.yml
parentfeeda0c0c46d4f6a9df1fcc10fa92ada4e9f6b9b (diff)
downloadlibvirt-ci-05632b762666b97b90fd2aebdd59203b7f1befdc.zip
libvirt-ci-05632b762666b97b90fd2aebdd59203b7f1befdc.tar.gz
libvirt-ci-05632b762666b97b90fd2aebdd59203b7f1befdc.tar.bz2
gitlab-ci.yml: Start using tox for testing
Some of the dependencies we need to install (transitively) are C libraries which need to be compiled at runtime. In order to do that, we need to install GCC and other library deps to the Alpine image before running tox. Signed-off-by: Erik Skultety <eskultet@redhat.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml11
1 files changed, 5 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3909594..614faa9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -147,9 +147,9 @@ flake8:
needs: []
before_script:
- apk update
+ - python3 -m pip install tox
script:
- - pip3 install flake8
- - flake8 --format=pylint
+ - tox -e lint
unittests:
extends: .test_template
@@ -158,11 +158,10 @@ unittests:
needs: []
before_script:
- apk update
- - apk add git ansible
+ - apk add gcc linux-headers libffi-dev musl-dev
+ - python3 -m pip install tox
script:
- - pip3 install setuptools pytest
- - pip3 install -r requirements.txt ansible-runner
- - python3 -m pytest --verbose
+ - tox -e py38
package_install:
extends: unittests