From d0df54d1f9bc1458ea5b04d6262c8179ae103c3f Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Wed, 9 Sep 2015 18:53:55 -0700 Subject: [PATCH] Run travis tests on OS X --- .travis.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index f38d0ca4b..558669f22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,24 +1,26 @@ sudo: false -os: - - linux language: cpp -compiler: clang -addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.6 - packages: - - zlib1g-dev - - libbz2-dev - - libsnappy-dev - - clang-3.6 -env: COMPILER=clang++-3.6 +matrix: + include: + - os: linux + compiler: clang + env: COMPILER=clang++-3.6 + addons: + apt: + sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6'] + packages: ['clang-3.6', 'zlib1g-dev', 'libbz2-dev', 'libsnappy-dev'] + - os: osx + compiler: clang + +before_script: + - if [ -n "${COMPILER}" ]; then CXX=${COMPILER}; fi + - if [[ $(uname -s) == 'Darwin' ]]; then brew install snappy; fi # Lousy hack to disable use and testing of fallocate, which doesn't behave quite # as EnvPosixTest::AllocateTest expects within the Travis OpenVZ environment. -script: CXX=$COMPILER OPT=-DTRAVIS V=1 make unity && make clean && CXX=$COMPILER OPT=-DTRAVIS V=1 make db_test && ./db_test && CXX=$COMPILER OPT=-DTRAVIS V=1 make clean jclean rocksdbjava jtest +script: OPT=-DTRAVIS V=1 make db_test && ./db_test && OPT=-DTRAVIS V=1 make clean jclean rocksdbjava jtest + notifications: email: false webhooks: