osrm-backend/.travis.yml
Daniel J. Hofmann ce1141982b Squashed 'third_party/mason/' changes from 6b4c359..c7a9670
git-subtree-dir: third_party/mason
git-subtree-split: c7a967003a7113a17faafe3b41082ad1ae3f1c2f
2017-02-15 11:48:43 +01:00

31 lines
819 B
YAML

language: generic
matrix:
include:
- os: osx
osx_image: xcode8
compiler: clang
- os: linux
sudo: false
install:
- |
export
if [[ ${MASON_PLATFORM:-unset} == 'unset' ]] || [[ ${MASON_PLATFORM} == 'osx' ]] || [[ ${MASON_PLATFORM} == 'linux' ]]; then
# If platform is Linux or OSX, we might still be cross compiling if the
# MASON_PLATFORM_VERSION is not the same as the host platform.
if [[ ${CXX:-unset} == 'unset' ]] || [[ ${CXX} == "clang" ]] ; then
if [[ ${MASON_PLATFORM_VERSION} == `uname -m` ]] || [[ -z ${MASON_PLATFORM_VERSION} ]]; then
echo "Installing clang for OSX/Linux via 'install' target"
source utils/toolchain.sh
which ${CC}
${CC} -v
which ${CXX}
${CXX} -v
fi
fi
fi
script:
- ./test/all.sh