Skip to content

Commit

Permalink
fix: TravisCI failures & status
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Aug 14, 2024
1 parent c6dd39b commit 4000107
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,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 4000107

Please sign in to comment.