Skip to content

Commit 4000107

Browse files
committed
fix: TravisCI failures & status
1 parent c6dd39b commit 4000107

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,7 @@ script: |
5656
(while true; do echo "travis_keep_alive"; sleep 300; done) &
5757
SPINNER_PID=$!
5858
disown
59-
$PYTHON ./bin/run_tests.py --num-processes 2
59+
result=0
60+
$PYTHON ./bin/run_tests.py --num-processes 2 || result=1
6061
kill -9 ${SPINNER_PID}
62+
test ${result} -eq 0

test/test_emscripten.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import pytest
88

9-
from cibuildwheel.util import CIBW_CACHE_PATH
9+
from cibuildwheel.util import CIBW_CACHE_PATH, CIProvider, detect_ci_provider
1010

1111
from . import test_projects, utils
1212

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

52+
if detect_ci_provider() == CIProvider.travis_ci:
53+
pytest.skip("Python 3.12 is just a non-working pyenv shim")
54+
5255
if use_pyproject_toml:
5356
basic_project.files["pyproject.toml"] = textwrap.dedent(
5457
"""

0 commit comments

Comments
 (0)