2015-10-11 14:29:35 +00:00
|
|
|
language: cpp
|
|
|
|
sudo: false
|
2016-07-29 22:15:01 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc-4.8
|
|
|
|
env: PYTHON=2.7 CPP=11
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc-4.8
|
|
|
|
env: PYTHON=3.5 CPP=11
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.3
|
|
|
|
env: PYTHON=2.7 CPP=14
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.3
|
|
|
|
env: PYTHON=3.5 CPP=14
|
2016-01-21 18:21:59 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
2016-05-21 08:29:30 +00:00
|
|
|
- ccache
|
2015-10-11 14:29:35 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
- deadsnakes
|
2016-05-22 20:45:11 +00:00
|
|
|
- kubuntu-backports # cmake 2.8.12
|
2015-10-11 14:29:35 +00:00
|
|
|
packages:
|
|
|
|
- g++-4.8
|
|
|
|
- python3.5
|
|
|
|
- python3.5-dev
|
2016-05-22 20:45:11 +00:00
|
|
|
- cmake
|
2016-07-29 22:15:01 +00:00
|
|
|
install:
|
|
|
|
- |
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
export CXX=g++-4.8 CC=gcc-4.8;
|
|
|
|
pip install --user --upgrade pip virtualenv
|
|
|
|
virtualenv -p python$PYTHON venv
|
|
|
|
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
2016-08-01 22:42:07 +00:00
|
|
|
if [ "${PYTHON:0:1}" = "3" ]; then
|
|
|
|
PMAJOR=3; brew update; brew install python$PMAJOR;
|
|
|
|
else
|
|
|
|
curl -fsSL -O https://bootstrap.pypa.io/get-pip.py
|
|
|
|
sudo -H python get-pip.py
|
|
|
|
fi
|
2016-07-29 22:15:01 +00:00
|
|
|
pip$PMAJOR install --user --upgrade pip virtualenv
|
|
|
|
python$PMAJOR -m virtualenv venv
|
|
|
|
fi
|
|
|
|
source venv/bin/activate
|
|
|
|
pip install numpy scipy
|
|
|
|
- |
|
|
|
|
wget -q -O eigen.tar.gz https://bitbucket.org/eigen/eigen/get/3.2.9.tar.gz
|
|
|
|
tar xzf eigen.tar.gz
|
|
|
|
export CMAKE_INCLUDE_PATH=eigen-eigen-dc6cfdf9bcec
|
|
|
|
script:
|
|
|
|
- cmake -DPYBIND11_PYTHON_VERSION=$PYTHON -DPYBIND11_CPP_STANDARD=-std=c++$CPP
|
|
|
|
- CTEST_OUTPUT_ON_FAILURE=TRUE make check -j 2
|