Skip to content

Commit f3519d6

Browse files
committed
enable travis-CI for the PyPy version
1 parent 1e884c4 commit f3519d6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.travis.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ matrix:
2626
- os: osx
2727
osx_image: xcode7.3
2828
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]
2936
# A barebones build makes sure everything still works without optional deps (numpy/scipy/eigen)
3037
# and also tests the automatic discovery functions in CMake (Python version, C++ standard).
3138
- os: linux
@@ -60,9 +67,18 @@ before_install:
6067
fi
6168
if [ -n "$CPP" ]; then export CPP=-std=c++$CPP; fi
6269
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
6375
if [ -n "$DEBUG" ]; then export CMAKE_EXTRA_ARGS="-DCMAKE_BUILD_TYPE=Debug"; fi
6476
- |
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
6682
if [ -n "$DOCKER" ]; then
6783
docker pull $DOCKER
6884
export containerid=$(docker run --detach --tty \

0 commit comments

Comments
 (0)