mirror of https://github.com/facebook/rocksdb.git
Merge pull request #714 from facebook/travisformac
Run travis tests on OS X
This commit is contained in:
commit
4cbd2f9aa3
32
.travis.yml
32
.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:
|
||||
|
|
Loading…
Reference in New Issue