| 1 |
version: '3.4' |
| 2 |
|
| 3 |
x-tests-template: &tests-template |
| 4 |
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:42-${CI_IMAGE_VERSION:-latest} |
| 5 |
command: tox -vvvvv -- --color=yes --integration |
| 6 |
environment: |
| 7 |
TOXENV: ${CI_TOXENV_ALL} |
| 8 |
|
| 9 |
# Enable privileges to run the sandbox |
| 10 |
# |
| 11 |
privileged: true |
| 12 |
devices: |
| 13 |
- /dev/fuse:/dev/fuse |
| 14 |
|
| 15 |
# Mount the local directory and set the working directory |
| 16 |
# to run the tests from. |
| 17 |
# |
| 18 |
volumes: |
| 19 |
- ../..:/home/testuser/buildstream |
| 20 |
working_dir: /home/testuser/buildstream |
| 21 |
|
| 22 |
|
| 23 |
services: |
| 24 |
|
| 25 |
debian-12: |
| 26 |
<<: *tests-template |
| 27 |
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-debian:12-${CI_IMAGE_VERSION:-latest} |
| 28 |
|
| 29 |
debian-13: |
| 30 |
<<: *tests-template |
| 31 |
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-debian:13-${CI_IMAGE_VERSION:-latest} |
| 32 |
|
| 33 |
fedora-42: |
| 34 |
<<: *tests-template |
| 35 |
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:42-${CI_IMAGE_VERSION:-latest} |
| 36 |
|
| 37 |
fedora-43: |
| 38 |
<<: *tests-template |
| 39 |
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:43-${CI_IMAGE_VERSION:-latest} |
| 40 |
|
| 41 |
ubuntu-22.04: |
| 42 |
<<: *tests-template |
| 43 |
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-ubuntu:22.04-${CI_IMAGE_VERSION:-latest} |
| 44 |
|
| 45 |
# Ensure that tests also pass in the absence of a sandboxing tool |
| 46 |
fedora-missing-deps: |
| 47 |
<<: *tests-template |
| 48 |
image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:minimal-${CI_IMAGE_VERSION:-latest} |
| 49 |
|
| 50 |
# Test against the master version of BuildStream |
| 51 |
bst-master: |
| 52 |
<<: *tests-template |
| 53 |
environment: |
| 54 |
TOXENV: ${CI_TOXENV_MASTER} |
| 55 |
|
| 56 |
docs: |
| 57 |
<<: *tests-template |
| 58 |
command: tox -e docs |
| 59 |
|
| 60 |
lint: |
| 61 |
<<: *tests-template |
| 62 |
command: tox -e lint,format-check |
| 63 |
|
| 64 |
mypy: |
| 65 |
<<: *tests-template |
| 66 |
command: tox -e mypy |