Skip to content

Commit 64b5044

Browse files
travis: Ensure Python 3.8 is used
Add some additional verbosity
1 parent a1e2e28 commit 64b5044

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ matrix:
2727
# - $PY_CMD -m sphinx -W -b html docs docs/.build
2828
- |
2929
# Make sure setup.py distributes and installs all the headers
30+
set -ex
3031
$PY_CMD setup.py sdist
3132
$PY_CMD -m pip install --user -U ./dist/*
3233
installed=$($PY_CMD -c "import pybind11; print(pybind11.get_include(True) + '/pybind11')")
3334
diff -rq $installed ./include/pybind11
3435
- |
3536
# Barebones build
37+
set -ex
3638
cmake -DCMAKE_BUILD_TYPE=Debug -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DPYTHON_EXECUTABLE=$(which $PY_CMD) .
3739
make pytest -j 2 && make cpptest -j 2
3840
# The following are regular test configurations, including optional dependencies.
@@ -124,12 +126,13 @@ matrix:
124126
# TODO: remove next before_install, install and script clause when the wheels become available
125127
before_install:
126128
- pyenv global $(pyenv whence 2to3) # activate all python versions
127-
- PY_CMD=python3
129+
- PY_CMD=python3.8
128130
- $PY_CMD -m pip install --user --upgrade pip wheel setuptools
129131
install:
130132
- $PY_CMD -m pip install --user --upgrade pytest
131133
script:
132134
- |
135+
set -ex
133136
# Barebones build
134137
cmake -DCMAKE_BUILD_TYPE=Debug -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DPYTHON_EXECUTABLE=$(which $PY_CMD) .
135138
make pytest -j 2 && make cpptest -j 2

0 commit comments

Comments
 (0)