Skip to content

Commit

Permalink
fix: TravisCI failures & status (pypa#1970)
Browse files Browse the repository at this point in the history
* fix: TravisCI failures & status
* Allow failure on s390x
  • Loading branch information
mayeut authored Aug 15, 2024
1 parent 5b570a2 commit 170e7aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
python: 3.9
services: docker
arch: s390x
allow_failure: True
env: PYTHON=python

install:
Expand All @@ -56,5 +57,7 @@ script: |
(while true; do echo "travis_keep_alive"; sleep 300; done) &
SPINNER_PID=$!
disown
$PYTHON ./bin/run_tests.py --num-processes 2
result=0
$PYTHON ./bin/run_tests.py --num-processes 2 || result=1
kill -9 ${SPINNER_PID}
test ${result} -eq 0
5 changes: 4 additions & 1 deletion test/test_emscripten.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import pytest

from cibuildwheel.util import CIBW_CACHE_PATH
from cibuildwheel.util import CIBW_CACHE_PATH, CIProvider, detect_ci_provider

from . import test_projects, utils

Expand Down Expand Up @@ -49,6 +49,9 @@ def test_pyodide_build(tmp_path, use_pyproject_toml):
if not shutil.which("python3.12"):
pytest.skip("Python 3.12 not installed")

if detect_ci_provider() == CIProvider.travis_ci:
pytest.skip("Python 3.12 is just a non-working pyenv shim")

if use_pyproject_toml:
basic_project.files["pyproject.toml"] = textwrap.dedent(
"""
Expand Down

0 comments on commit 170e7aa

Please sign in to comment.