2014-12-09 15:16:34 -08:00
|
|
|
os:
|
|
|
|
|
- linux
|
2014-12-29 11:23:06 -08:00
|
|
|
- osx
|
2012-11-06 16:41:41 -08:00
|
|
|
language: cpp
|
|
|
|
|
compiler:
|
|
|
|
|
- gcc
|
|
|
|
|
- clang
|
2012-11-06 19:20:23 -08:00
|
|
|
install:
|
2016-07-12 20:48:57 +02:00
|
|
|
############################################################################
|
|
|
|
|
# Install a recent CMake (unless already installed on OS X)
|
|
|
|
|
# See http://stackoverflow.com/questions/33196136/travis-ci-update-cmake-using-the-packages-cache
|
|
|
|
|
############################################################################
|
|
|
|
|
- |
|
|
|
|
|
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
|
|
|
|
|
CMAKE_URL="http://www.cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.tar.gz"
|
|
|
|
|
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
|
|
|
|
|
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
|
|
|
|
|
else
|
|
|
|
|
if ! brew ls --version cmake &>/dev/null; then brew install cmake; fi
|
|
|
|
|
fi
|
2014-12-29 11:23:06 -08:00
|
|
|
- make install_deps
|
|
|
|
|
- source setup.bash
|
2012-11-06 19:20:23 -08:00
|
|
|
script:
|
2013-11-18 20:53:20 -05:00
|
|
|
- make && make test
|