11language : cpp
22sudo : false
3- dist : trusty
3+ dist : xenial
44
55matrix :
66 include :
@@ -11,25 +11,22 @@ matrix:
1111 apt :
1212 packages :
1313 - clang
14- - cmake3
1514 - gfortran
16- - swig
1715 env :
1816 - CXX_COMPILER='clang++'
1917 - C_COMPILER='clang'
2018 - Fortran_COMPILER='gfortran'
2119 - BUILD_TYPE='Release'
2220 - PYTHON='--three'
2321 - COVERAGE=OFF
22+ - PYBIND11='-Dpybind11_DIR=$HOME/Deps/pybind11/share/cmake/pybind11'
2423 - os : linux
2524 compiler : clang
2625 addons : &clang35
2726 apt :
2827 packages :
2928 - clang-3.5
30- - cmake3
3129 - gfortran
32- - swig
3330 env :
3431 - CXX_COMPILER='clang++-3.5'
3532 - C_COMPILER='clang-3.5'
@@ -43,9 +40,7 @@ matrix:
4340 apt :
4441 packages :
4542 - clang-3.8
46- - cmake3
4743 - gfortran
48- - swig
4944 env :
5045 - CXX_COMPILER='clang++-3.8'
5146 - C_COMPILER='clang-3.8'
@@ -59,18 +54,17 @@ matrix:
5954 addons : &gcc48
6055 apt :
6156 packages :
62- - cmake3
63- - g++
64- - gcc
65- - gfortran
66- - swig
57+ - g++-4.8
58+ - gcc-4.8
59+ - gfortran-4.8
6760 env :
68- - CXX_COMPILER='g++'
69- - C_COMPILER='gcc'
70- - Fortran_COMPILER='gfortran'
61+ - CXX_COMPILER='g++-4.8 '
62+ - C_COMPILER='gcc-4.8 '
63+ - Fortran_COMPILER='gfortran-4.8 '
7164 - BUILD_TYPE='Release'
7265 - PYTHON='--two'
7366 - COVERAGE=OFF
67+ - PYBIND11='-Dpybind11_DIR=$HOME/Deps/pybind11/share/cmake/pybind11'
7468 - os : linux
7569 python : 3.6
7670 compiler : gcc
@@ -79,11 +73,9 @@ matrix:
7973 sources :
8074 - ubuntu-toolchain-r-test
8175 packages :
82- - cmake3
8376 - g++-5
8477 - gcc-5
8578 - gfortran-5
86- - swig
8779 env :
8880 - CXX_COMPILER='g++-5'
8981 - C_COMPILER='gcc-5'
@@ -98,11 +90,9 @@ matrix:
9890 sources :
9991 - ubuntu-toolchain-r-test
10092 packages :
101- - cmake3
10293 - g++-6
10394 - gcc-6
10495 - gfortran-6
105- - swig
10696 env :
10797 - CXX_COMPILER='g++-6'
10898 - C_COMPILER='gcc-6'
@@ -117,11 +107,9 @@ matrix:
117107 sources :
118108 - ubuntu-toolchain-r-test
119109 packages :
120- - cmake3
121110 - g++-7
122111 - gcc-7
123112 - gfortran-7
124- - swig
125113 env :
126114 - CXX_COMPILER='g++-7'
127115 - C_COMPILER='gcc-7'
@@ -132,16 +120,32 @@ matrix:
132120 # 3/ OSX Clang Builds
133121 - os : osx
134122 compiler : clang
123+ addons :
124+ homebrew :
125+ packages :
126+ - cmake
127+ - python
128+ - pipenv
129+ update : true
135130 env :
136131 - CXX_COMPILER='clang++'
137132 - C_COMPILER='clang'
138133 - Fortran_COMPILER='gfortran'
139134 - BUILD_TYPE='Release'
140135 - PYTHON='--two'
141136 - COVERAGE=OFF
137+ - PYBIND11='-Dpybind11_DIR=$HOME/Deps/pybind11/share/cmake/pybind11'
142138 # 4/ OSX GCC Builds
143139 - os : osx
144140 compiler : gcc
141+ addons :
142+ homebrew :
143+ packages :
144+ - gcc
145+ - cmake
146+ - python
147+ - pipenv
148+ update : true
145149 env :
146150 - CXX_COMPILER='g++'
147151 - C_COMPILER='gcc'
@@ -157,12 +161,10 @@ matrix:
157161 sources :
158162 - ubuntu-toolchain-r-test
159163 packages :
160- - cmake3
161164 - g++-7
162165 - gcc-7
163166 - gfortran-7
164167 - lcov
165- - swig
166168 env :
167169 - CXX_COMPILER='g++-7'
168170 - C_COMPILER='gcc-7'
@@ -175,25 +177,19 @@ before_install:
175177 - test -n $CC && unset CC
176178 - test -n $CXX && unset CXX
177179 - test -n $FC && unset FC
180+ - mkdir -p "$HOME"/Deps "$HOME"/Downloads
178181
179182install :
180- - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
181- - mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
182183 - |
183- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
184- brew update &> /dev/null
185- brew cask uninstall --force oclint
186- brew upgrade cmake python
187- brew install gcc pipenv swig
188- elif [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
189- # pip install --user pipenv --upgrade
190- # https://github.com/pypa/pipenv/issues/3224
191- pip install --user --upgrade -e git+https://github.com/pypa/pipenv.git#egg=pipenv
184+ if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
185+ pip install --user pipenv --upgrade
192186 fi
193187 - pipenv $PYTHON install --dev
188+ - source $(pipenv --venv)/bin/activate
189+ - ./.ci/cmake.sh
190+ - ./.ci/pybind11.sh
194191
195192before_script :
196- - source $(pipenv --venv)/bin/activate
197193 - python --version
198194 - cd ${TRAVIS_BUILD_DIR}
199195 - >
@@ -206,6 +202,7 @@ before_script:
206202 -DENABLE_PYTHON_INTERFACE=ON
207203 -DPYTHON_EXECUTABLE=$(which python)
208204 -DCMAKE_INSTALL_PREFIX=$HOME/Software/xcfun
205+ ${PYBIND11}
209206
210207script :
211208 # Build and install
0 commit comments