@@ -26,6 +26,13 @@ matrix:
26
26
- os : osx
27
27
osx_image : xcode7.3
28
28
env : PYTHON=3.5 CPP=14 CLANG
29
+ # Test a PyPy 2.7 nightly build
30
+ - os : linux
31
+ env : PYPY=1 PYTHON=2.7 CPP=11 GCC=4.8
32
+ addons :
33
+ apt :
34
+ sources : [ubuntu-toolchain-r-test, kubuntu-backports]
35
+ packages : [g++-4.8, cmake]
29
36
# A barebones build makes sure everything still works without optional deps (numpy/scipy/eigen)
30
37
# and also tests the automatic discovery functions in CMake (Python version, C++ standard).
31
38
- os : linux
@@ -60,9 +67,18 @@ before_install:
60
67
fi
61
68
if [ -n "$CPP" ]; then export CPP=-std=c++$CPP; fi
62
69
if [ "${PYTHON:0:1}" = "3" ]; then export PY=3; fi
70
+ if [ -n "$PYPY" ]; then
71
+ curl http://buildbot.pypy.org/nightly/trunk/pypy-c-jit-latest-linux64.tar.bz2 | tar -xj
72
+ export PYPY_BINARY=$(echo `pwd`/pypy-c-jit*/bin/pypy)
73
+ export CMAKE_EXTRA_ARGS="-DPYTHON_EXECUTABLE:FILEPATH=$PYPY_BINARY"
74
+ fi
63
75
if [ -n "$DEBUG" ]; then export CMAKE_EXTRA_ARGS="-DCMAKE_BUILD_TYPE=Debug"; fi
64
76
- |
65
- # Initialize enviornment
77
+ # Initialize environment
78
+ if [ -n "$PYPY" ]; then
79
+ $PYPY_BINARY -m ensurepip
80
+ $PYPY_BINARY -m pip install pytest
81
+ fi
66
82
if [ -n "$DOCKER" ]; then
67
83
docker pull $DOCKER
68
84
export containerid=$(docker run --detach --tty \
0 commit comments