Skip to content

Commit cbf3fd3

Browse files
travis: Ensure Python 3.8 is used
Add some additional verbosity
1 parent ad98095 commit cbf3fd3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 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.
@@ -119,17 +121,19 @@ matrix:
119121
packages:
120122
- g++-7
121123
- python3.8-dev
124+
- python3.8-distutils
122125
- python3.8-venv
123126
# Currently there is no numpy/scipy wheels available for python3.8
124127
# TODO: remove next before_install, install and script clause when the wheels become available
125128
before_install:
126129
- pyenv global $(pyenv whence 2to3) # activate all python versions
127-
- PY_CMD=python3
130+
- PY_CMD=python3.8
128131
- $PY_CMD -m pip install --user --upgrade pip wheel setuptools
129132
install:
130133
- $PY_CMD -m pip install --user --upgrade pytest
131134
script:
132135
- |
136+
set -ex
133137
# Barebones build
134138
cmake -DCMAKE_BUILD_TYPE=Debug -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DPYTHON_EXECUTABLE=$(which $PY_CMD) .
135139
make pytest -j 2 && make cpptest -j 2

0 commit comments

Comments
 (0)