* fix: enforce minimum version of docker/podman This allows to always pass `--platform` to the OCI engine thus fixing issues with multiarch images. * Allow older versions with warnings * Upgrade docker on Travis CI * fix: use `docker cp` instead of `tar` * Enforce docker>=24.0 * move log to include container.copy_into * fix: travis-ci, only update docker on aarch64 * skip test_multiarch_image on s390x / ppc64le * skip flaky test * chore: only install test deps on Travis CI * fix: do not try to pull images tagged `cibw_local` * use "--pull=never" for local images * Use docker image inspect to check if an image needs to be pulled
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
linux:
|
|
image: python:3.12
|
|
services:
|
|
- name: docker:dind
|
|
entrypoint: ["env", "-u", "DOCKER_HOST"]
|
|
command: ["dockerd-entrypoint.sh"]
|
|
variables:
|
|
DOCKER_HOST: tcp://docker:2375/
|
|
DOCKER_DRIVER: overlay2
|
|
# See https://github.com/docker-library/docker/pull/166
|
|
DOCKER_TLS_CERTDIR: ""
|
|
|
|
# skip all but the basic tests
|
|
# (comment the below line in a PR to debug a Gitlab-specific issue)
|
|
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
|
|
script:
|
|
- curl -sSL https://get.docker.com/ | sh
|
|
- docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all
|
|
- python -m pip install -e ".[dev]" pytest-custom-exit-code
|
|
- python ./bin/run_tests.py
|
|
|
|
windows:
|
|
image: mcr.microsoft.com/windows/servercore:1809
|
|
variables:
|
|
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
|
|
before_script:
|
|
- choco install python -y --version 3.12.4
|
|
script:
|
|
- py -m pip install -e ".[dev]" pytest-custom-exit-code
|
|
- py bin\run_tests.py
|
|
tags:
|
|
- saas-windows-medium-amd64
|
|
|
|
macos:
|
|
image: macos-14-xcode-15
|
|
variables:
|
|
PYTEST_ADDOPTS: -k "unit_test or test_0_basic" --suppress-no-test-exit-code
|
|
script:
|
|
- python3 -m pip install -e ".[dev]" pytest-custom-exit-code
|
|
- python3 ./bin/run_tests.py
|
|
tags:
|
|
- saas-macos-medium-m1
|