blob: 87caad30ad0be60a50bffc5098e9477d315a8389 [file] [log] [blame]
Wenzel Jakob3b806d42015-10-11 16:29:35 +02001language: cpp
2sudo: false
Dean Moldovan3ac12752016-07-30 00:15:01 +02003matrix:
4 include:
5 - os: linux
6 compiler: gcc-4.8
7 env: PYTHON=2.7 CPP=11
8 - os: linux
9 compiler: gcc-4.8
10 env: PYTHON=3.5 CPP=11
11 - os: osx
12 osx_image: xcode7.3
13 env: PYTHON=2.7 CPP=14
14 - os: osx
15 osx_image: xcode7.3
16 env: PYTHON=3.5 CPP=14
Wenzel Jakoba40c27e2016-01-21 19:21:59 +010017cache:
18 directories:
19 - $HOME/.cache/pip
Omer Katzf74c9232016-05-21 11:29:30 +030020 - ccache
Wenzel Jakob3b806d42015-10-11 16:29:35 +020021addons:
22 apt:
23 sources:
24 - ubuntu-toolchain-r-test
25 - deadsnakes
Dean Moldovanb4b70a52016-05-22 22:45:11 +020026 - kubuntu-backports # cmake 2.8.12
Wenzel Jakob3b806d42015-10-11 16:29:35 +020027 packages:
28 - g++-4.8
29 - python3.5
30 - python3.5-dev
Dean Moldovanb4b70a52016-05-22 22:45:11 +020031 - cmake
Dean Moldovan3ac12752016-07-30 00:15:01 +020032install:
33- |
34 if [ "$TRAVIS_OS_NAME" = "linux" ]; then
35 export CXX=g++-4.8 CC=gcc-4.8;
36 pip install --user --upgrade pip virtualenv
37 virtualenv -p python$PYTHON venv
38 elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
Dean Moldovan880a7e42016-08-02 00:42:07 +020039 if [ "${PYTHON:0:1}" = "3" ]; then
40 PMAJOR=3; brew update; brew install python$PMAJOR;
41 else
42 curl -fsSL -O https://bootstrap.pypa.io/get-pip.py
43 sudo -H python get-pip.py
44 fi
Dean Moldovan3ac12752016-07-30 00:15:01 +020045 pip$PMAJOR install --user --upgrade pip virtualenv
46 python$PMAJOR -m virtualenv venv
47 fi
48 source venv/bin/activate
49 pip install numpy scipy
50- |
51 wget -q -O eigen.tar.gz https://bitbucket.org/eigen/eigen/get/3.2.9.tar.gz
52 tar xzf eigen.tar.gz
53 export CMAKE_INCLUDE_PATH=eigen-eigen-dc6cfdf9bcec
54script:
55- cmake -DPYBIND11_PYTHON_VERSION=$PYTHON -DPYBIND11_CPP_STANDARD=-std=c++$CPP
56- CTEST_OUTPUT_ON_FAILURE=TRUE make check -j 2