1
1
language : cpp
2
2
dist : trusty
3
- sudo : false
4
3
matrix :
5
4
include :
6
5
# This config does a few things:
@@ -33,7 +32,7 @@ matrix:
33
32
diff -rq $installed ./include/pybind11
34
33
- |
35
34
# Barebones build
36
- cmake -DCMAKE_BUILD_TYPE=Debug -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DPYTHON_EXECUTABLE=$(which $PY_CMD)
35
+ cmake -DCMAKE_BUILD_TYPE=Debug -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DPYTHON_EXECUTABLE=$(which $PY_CMD) .
37
36
make pytest -j 2
38
37
make cpptest -j 2
39
38
# The following are regular test configurations, including optional dependencies.
@@ -49,14 +48,11 @@ matrix:
49
48
apt :
50
49
sources : [deadsnakes]
51
50
packages : [python3.6-dev python3.6-venv, cmake=2.\*, cmake-data=2.\*]
52
- - sudo : true
53
- services : docker
51
+ - services : docker
54
52
env : PYTHON=2.7 CPP=14 GCC=6 CMAKE=1
55
- - sudo : true
56
- services : docker
53
+ - services : docker
57
54
env : PYTHON=3.5 CPP=14 GCC=6 DEBUG=1
58
- - sudo : true
59
- services : docker
55
+ - services : docker
60
56
env : PYTHON=3.6 CPP=17 GCC=7
61
57
- os : linux
62
58
env : PYTHON=3.6 CPP=17 CLANG=5.0
@@ -72,18 +68,17 @@ matrix:
72
68
env : PYTHON=3.7 CPP=14 CLANG DEBUG=1
73
69
# Test a PyPy 2.7 build
74
70
- os : linux
75
- env : PYPY=5.8 PYTHON=2.7 CPP=11 GCC=4.8
71
+ env : PYPY=7.1 PYTHON=2.7 CPP=11 GCC=4.8
76
72
addons :
77
73
apt :
78
74
packages : [libblas-dev, liblapack-dev, gfortran]
79
75
# Build in 32-bit mode and tests against the CMake-installed version
80
- - sudo : true
81
- services : docker
76
+ - services : docker
82
77
env : ARCH=i386 PYTHON=3.5 CPP=14 GCC=6 INSTALL=1
83
78
script :
84
79
- |
85
80
$SCRIPT_RUN_PREFIX sh -c "set -e
86
- cmake ${CMAKE_EXTRA_ARGS} -DPYBIND11_INSTALL=1 -DPYBIND11_TEST=0
81
+ cmake ${CMAKE_EXTRA_ARGS} -DPYBIND11_INSTALL=1 -DPYBIND11_TEST=0 .
87
82
make install
88
83
cp -a tests /pybind11-tests
89
84
mkdir /build-tests && cd /build-tests
@@ -131,9 +126,9 @@ before_install:
131
126
SCRIPT_RUN_PREFIX="docker exec --tty $containerid"
132
127
$SCRIPT_RUN_PREFIX sh -c 'for s in 0 15; do sleep $s; apt-get update && apt-get -qy dist-upgrade && break; done'
133
128
else
134
- if [ "$PYPY" = "5.8 " ]; then
135
- curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8 .0-linux64.tar.bz2 | tar xj
136
- PY_CMD=$(echo `pwd`/pypy2-v5.8 .0-linux64/bin/pypy)
129
+ if [ "$PYPY" = "7.1 " ]; then
130
+ curl -fSL https://bitbucket.org/pypy/pypy/downloads/pypy2.7-v7.1 .0-linux64.tar.bz2 | tar xj
131
+ PY_CMD=$(echo `pwd`/pypy2.7-v7.1 .0-linux64/bin/pypy)
137
132
CMAKE_EXTRA_ARGS+=" -DPYTHON_EXECUTABLE:FILEPATH=$PY_CMD"
138
133
else
139
134
PY_CMD=python$PYTHON
@@ -148,12 +143,14 @@ before_install:
148
143
if [ "$PY" = 3 ] || [ -n "$PYPY" ]; then
149
144
$PY_CMD -m ensurepip --user
150
145
fi
146
+ $PY_CMD --version
151
147
$PY_CMD -m pip install --user --upgrade pip wheel
152
148
fi
153
149
set +e
154
150
install :
155
151
- |
156
152
# Install dependencies
153
+ cmake --version
157
154
set -e
158
155
if [ -n "$DOCKER" ]; then
159
156
if [ -n "$DEBUG" ]; then
@@ -174,10 +171,7 @@ install:
174
171
git clone https://github.com/llvm-mirror/libcxx.git llvm-source/projects/libcxx -b release_50
175
172
git clone https://github.com/llvm-mirror/libcxxabi.git llvm-source/projects/libcxxabi -b release_50
176
173
mkdir llvm-build && cd llvm-build
177
- # Building llvm requires a newer cmake than is provided by the trusty container:
178
- CMAKE_VER=cmake-3.8.0-Linux-x86_64
179
- curl https://cmake.org/files/v3.8/$CMAKE_VER.tar.gz | tar xz
180
- ./$CMAKE_VER/bin/cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/.local ../llvm-source
174
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/.local ../llvm-source
181
175
make -j2 install-cxxabi install-cxx
182
176
cp -a include/c++/v1/*cxxabi*.h ~/.local/include/c++/v1
183
177
cd ..
@@ -206,6 +200,7 @@ script:
206
200
-DPYBIND11_CPP_STANDARD=$CPP
207
201
-DPYBIND11_WERROR=${WERROR:-ON}
208
202
-DDOWNLOAD_CATCH=${DOWNLOAD_CATCH:-ON}
203
+ .
209
204
- $SCRIPT_RUN_PREFIX make pytest -j 2
210
205
- $SCRIPT_RUN_PREFIX make cpptest -j 2
211
206
- if [ -n "$CMAKE" ]; then $SCRIPT_RUN_PREFIX make test_cmake_build; fi
0 commit comments