Files
cibuildwheel/.travis.yml
T

74 lines
2.0 KiB
YAML
Raw Normal View History

2021-05-23 21:34:07 +02:00
os: linux
dist: jammy
2021-05-23 21:34:07 +02:00
language: python
2017-09-01 13:49:39 +01:00
branches:
only:
- main
# only build the main branch or PR that explicitely want to test with Travis CI
if: (type = "push") OR (commit_message =~ /travis-ci/)
2020-03-07 10:46:26 +00:00
jobs:
include:
- name: Linux | x86_64 + i686 | Python 3.12
python: 3.12
2018-05-02 22:39:24 +02:00
services: docker
env:
- PYTHON=python
- CIBW_ENABLE=all
- name: Linux | arm64 | Python 3.12
python: 3.12
services: docker
arch: arm64
env:
- PYTHON=python
- CIBW_ENABLE=all
- name: Linux | ppc64le | Python 3.12
python: 3.12
services: docker
arch: ppc64le
2021-05-29 14:15:00 -04:00
allow_failure: True
2021-05-23 21:34:07 +02:00
env:
- PYTHON=python
# skip test_manylinuxXXXX_only, it uses too much disk space
# c.f. https://travis-ci.community/t/running-out-of-disk-space-quota-when-using-docker-on-ppc64le/11634
- PYTEST_ADDOPTS='-k "not test_manylinuxXXXX_only"'
- CIBW_ENABLE=all
- name: Windows | x86_64 | Python 3.12
os: windows
language: shell
before_install:
- choco upgrade python3 -y --version 3.12.8 --limit-output --params "/InstallDir:C:\\Python312"
2020-03-07 10:52:53 +00:00
env:
- PYTHON=C:\\Python312\\python
- CIBW_ENABLE=all
- name: Linux | s390x | Python 3.12
python: 3.12
services: docker
arch: s390x
2024-08-15 17:48:24 +02:00
allow_failure: True
env:
- PYTHON=python
- CIBW_ENABLE=all
2022-01-09 12:17:51 +01:00
install:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then docker run --rm --privileged docker.io/tonistiigi/binfmt:latest --install all; fi
2024-11-19 13:30:06 -05:00
- $PYTHON -m pip install -U pip dependency-groups
- $PYTHON -m dependency_groups test | xargs $PYTHON -m pip install -e.
2018-05-02 22:39:24 +02:00
script: |
# travis_wait disable the output while waiting
# use the same kind of tricks as in multibuild
(while true; do echo "travis_keep_alive"; sleep 300; done) &
SPINNER_PID=$!
disown
2024-08-15 17:48:24 +02:00
result=0
$PYTHON ./bin/run_tests.py --num-processes 2 || result=1
kill -9 ${SPINNER_PID}
2024-08-15 17:48:24 +02:00
test ${result} -eq 0