@@ -17,7 +17,8 @@ matrix:
1717 - $PY_CMD -m pip install --user --upgrade pip wheel setuptools
1818 install :
1919 # breathe 4.14 doesn't work with bit fields. See https://github.com/michaeljones/breathe/issues/462
20- - $PY_CMD -m pip install --user --upgrade sphinx sphinx_rtd_theme breathe==4.13.1 flake8 pep8-naming pytest
20+ # Latest breathe + Sphinx causes warnings and errors out
21+ - $PY_CMD -m pip install --user --upgrade "sphinx<3" sphinx_rtd_theme breathe==4.13.1 flake8 pep8-naming pytest
2122 - curl -fsSL https://sourceforge.net/projects/doxygen/files/rel-1.8.15/doxygen-1.8.15.linux.bin.tar.gz/download | tar xz
2223 - export PATH="$PWD/doxygen-1.8.15/bin:$PATH"
2324 script :
@@ -109,7 +110,7 @@ matrix:
109110 - os : linux
110111 dist : xenial
111112 env : PYTHON=3.8 CPP=17 GCC=7
112- name : Python 3.8, c++17, gcc 7 (w/o numpy/scipy) # TODO: update build name when the numpy/scipy wheels become available
113+ name : Python 3.8, c++17, gcc 7
113114 addons :
114115 apt :
115116 sources :
@@ -119,12 +120,21 @@ matrix:
119120 - g++-7
120121 - python3.8-dev
121122 - python3.8-venv
122- # Currently there is no numpy/scipy wheels available for python3.8
123- # TODO: remove next before_install, install and script clause when the wheels become available
124- before_install :
125- - pyenv global $(pyenv whence 2to3) # activate all python versions
126- - PY_CMD=python3
127- - $PY_CMD -m pip install --user --upgrade pip wheel setuptools
123+ - os : linux
124+ dist : xenial
125+ env : PYTHON=3.9 CPP=17 GCC=7
126+ name : Python 3.9 beta, c++17, gcc 7 (w/o numpy/scipy) # TODO: update build name when the numpy/scipy wheels become available
127+ addons :
128+ apt :
129+ sources :
130+ - deadsnakes
131+ - ubuntu-toolchain-r-test
132+ packages :
133+ - g++-7
134+ - python3.9-dev
135+ - python3.9-venv
136+ # Currently there are no numpy/scipy wheels available for python3.9
137+ # TODO: remove next install and script clause when the wheels become available
128138 install :
129139 - $PY_CMD -m pip install --user --upgrade pytest
130140 script :
@@ -143,25 +153,25 @@ matrix:
143153 # Test a PyPy 2.7 build
144154 - os : linux
145155 dist : trusty
146- env : PYPY=5.8.0 PYTHON=2.7 CPP=11 GCC=4.8
147- name : PyPy 5.8.0 , Python 2.7, c++11, gcc 4.8
156+ env : PYPY=7.3.1 PYTHON=2.7 CPP=11 GCC=4.8
157+ name : PyPy 7.3 , Python 2.7, c++11, gcc 4.8
148158 addons :
149159 apt :
150160 packages :
151161 - libblas-dev
152162 - liblapack-dev
153163 - gfortran
154- # Test a PyPy 3.6 build
155164 - os : linux
156- dist : trusty
157- env : PYPY=7.3.0 PYTHON=3.6 CPP=11 GCC=4.8
158- name : PyPy 7.3.0 , Python 3.6, c++11, gcc 4.8
165+ dist : xenial
166+ env : PYPY=7.3.1 PYTHON=3.6 CPP=11 GCC=5
167+ name : PyPy 7.3, Python 3.6, c++11, gcc 5
159168 addons :
160169 apt :
161170 packages :
162171 - libblas-dev
163172 - liblapack-dev
164173 - gfortran
174+ - g++-5
165175 # Build in 32-bit mode and tests against the CMake-installed version
166176 - os : linux
167177 dist : trusty
@@ -181,6 +191,10 @@ matrix:
181191 cmake ../pybind11-tests ${CMAKE_EXTRA_ARGS} -DPYBIND11_WERROR=ON
182192 make pytest -j 2"
183193 set +ex
194+ allow_failures :
195+ - name : PyPy 7.3, Python 2.7, c++11, gcc 4.8
196+ - name : PyPy 7.3, Python 3.6, c++11, gcc 5
197+ - name : Python 3.9 beta, c++17, gcc 7 (w/o numpy/scipy)
184198cache :
185199 directories :
186200 - $HOME/.local/bin
@@ -222,9 +236,15 @@ before_install:
222236 SCRIPT_RUN_PREFIX="docker exec --tty $containerid"
223237 $SCRIPT_RUN_PREFIX sh -c 'for s in 0 15; do sleep $s; apt-get update && apt-get -qy dist-upgrade && break; done'
224238 else
239+ <<<<<<< HEAD
225240 if [ "$PYPY" = "5.8.0" ]; then
226241 curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8.0-linux64.tar.bz2 | tar xj
227242 PY_CMD=$(echo `pwd`/pypy2-v5.8.0-linux64/bin/pypy)
243+ =======
244+ if [ -n "$PYPY" ]; then
245+ curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy$PYTHON-v$PYPY-linux64.tar.bz2 | tar xj
246+ PY_CMD=$(echo `pwd`/pypy$PYTHON-v$PYPY-linux64/bin/pypy$PY)
247+ >>>>>>> 8c0cd94465fbc1dbc34217e5a614edc784f0913e
228248 CMAKE_EXTRA_ARGS+=" -DPYTHON_EXECUTABLE:FILEPATH=$PY_CMD"
229249 elif [ -n "$PYPY" ]; then
230250 curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy${PYTHON:0:3}-v${PYPY}-linux64.tar.bz2 | tar xj
@@ -271,10 +291,19 @@ install:
271291 fi
272292
273293 local PIP_CMD=""
294+ <<<<<<< HEAD
274295 export NPY_NUM_BUILD_JOBS=2
275296 if [ -n "$PYPY" ]; then
276297 echo Installing "pytest"
277298 $PY_CMD -m pip install --user --upgrade pytest
299+ =======
300+ if [ -n "$PYPY" ]; then
301+ # For expediency, install only versions that are available on the extra index.
302+ travis_wait 30 \
303+ $PY_CMD -m pip install --user --upgrade --extra-index-url https://antocuni.github.io/pypy-wheels/manylinux2010 \
304+ numpy scipy
305+ $PY_CMD -m pip install --user --upgrade pytest
306+ >>>>>>> 8c0cd94465fbc1dbc34217e5a614edc784f0913e
278307 else
279308 echo "Installing pytest, numpy, scipy..."
280309 $PY_CMD -m pip install --user --upgrade pytest numpy scipy
0 commit comments