2019-06-17 17:15:58 +00:00
|
|
|
dist: xenial
|
2014-05-11 04:18:23 +00:00
|
|
|
language: cpp
|
2016-04-12 22:05:56 +00:00
|
|
|
os:
|
2016-06-30 21:34:50 +00:00
|
|
|
- linux
|
2016-04-12 22:05:56 +00:00
|
|
|
- osx
|
2020-03-11 19:31:06 +00:00
|
|
|
arch:
|
|
|
|
- amd64
|
|
|
|
- ppc64le
|
2017-06-05 22:34:40 +00:00
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
2019-12-17 21:52:09 +00:00
|
|
|
osx_image: xcode9.4
|
2016-11-16 18:36:49 +00:00
|
|
|
jdk:
|
2019-06-17 17:15:58 +00:00
|
|
|
- openjdk7
|
2017-01-09 21:45:04 +00:00
|
|
|
cache:
|
|
|
|
- ccache
|
2015-09-10 00:55:33 +00:00
|
|
|
|
2016-04-12 22:05:56 +00:00
|
|
|
addons:
|
2018-07-13 17:47:49 +00:00
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- libgflags-dev
|
2019-12-17 21:52:09 +00:00
|
|
|
- libbz2-dev
|
|
|
|
- liblz4-dev
|
2018-07-13 17:47:49 +00:00
|
|
|
- libsnappy-dev
|
2019-12-17 21:52:09 +00:00
|
|
|
- liblzma-dev # xv
|
|
|
|
- libzstd-dev
|
2018-07-13 17:47:49 +00:00
|
|
|
- zlib1g-dev
|
2019-12-17 21:52:09 +00:00
|
|
|
homebrew:
|
|
|
|
update: true
|
|
|
|
packages:
|
|
|
|
- ccache
|
|
|
|
- gflags
|
|
|
|
- lz4
|
|
|
|
- snappy
|
|
|
|
- xz
|
|
|
|
- zstd
|
|
|
|
|
2016-04-12 22:05:56 +00:00
|
|
|
env:
|
2017-05-30 17:32:16 +00:00
|
|
|
- TEST_GROUP=platform_dependent # 16-18 minutes
|
|
|
|
- TEST_GROUP=1 # 33-35 minutes
|
2018-03-14 01:47:38 +00:00
|
|
|
- TEST_GROUP=2 # 18-20 minutes
|
|
|
|
- TEST_GROUP=3 # 20-22 minutes
|
|
|
|
- TEST_GROUP=4 # 12-14 minutes
|
2016-04-13 21:22:29 +00:00
|
|
|
# Run java tests
|
2017-05-30 17:32:16 +00:00
|
|
|
- JOB_NAME=java_test # 4-11 minutes
|
2016-04-13 21:22:29 +00:00
|
|
|
# Build ROCKSDB_LITE
|
2017-05-30 17:32:16 +00:00
|
|
|
- JOB_NAME=lite_build # 3-4 minutes
|
2017-04-07 17:36:09 +00:00
|
|
|
# Build examples
|
2017-05-30 17:32:16 +00:00
|
|
|
- JOB_NAME=examples # 5-7 minutes
|
|
|
|
- JOB_NAME=cmake # 3-5 minutes
|
2018-07-13 17:47:49 +00:00
|
|
|
- JOB_NAME=cmake-gcc8 # 3-5 minutes
|
2017-05-30 17:32:16 +00:00
|
|
|
- JOB_NAME=cmake-mingw # 3 minutes
|
2015-09-10 01:53:55 +00:00
|
|
|
|
2017-01-09 21:45:04 +00:00
|
|
|
matrix:
|
|
|
|
exclude:
|
2017-02-27 19:04:27 +00:00
|
|
|
- os: osx
|
|
|
|
env: TEST_GROUP=1
|
|
|
|
- os: osx
|
|
|
|
env: TEST_GROUP=2
|
2017-08-31 16:27:14 +00:00
|
|
|
- os: osx
|
|
|
|
env: TEST_GROUP=3
|
2018-03-14 01:47:38 +00:00
|
|
|
- os: osx
|
|
|
|
env: TEST_GROUP=4
|
2018-07-13 17:47:49 +00:00
|
|
|
- os: osx
|
|
|
|
env: JOB_NAME=cmake-gcc8
|
2020-03-11 19:31:06 +00:00
|
|
|
- os: osx
|
2017-05-05 23:09:24 +00:00
|
|
|
env: JOB_NAME=cmake-mingw
|
2020-03-11 19:31:06 +00:00
|
|
|
- os: osx
|
|
|
|
arch: ppc64le
|
|
|
|
- os: osx
|
2017-06-05 22:34:40 +00:00
|
|
|
compiler: gcc
|
2020-03-11 19:31:06 +00:00
|
|
|
- os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=cmake-mingw
|
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- if [[ "${JOB_NAME}" == java_test || "${JOB_NAME}" == cmake* ]] && [ "$(uname -m)" == ppc64le ]; then
|
|
|
|
sudo apt-get -y install openjdk-8-jdk && export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-ppc64el;
|
|
|
|
fi
|
2017-05-30 17:32:16 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" == osx ]; then
|
|
|
|
PATH=$PATH:/usr/local/opt/ccache/libexec;
|
|
|
|
fi
|
2018-07-13 17:47:49 +00:00
|
|
|
- if [ "${JOB_NAME}" == cmake-gcc8 ]; then
|
2019-12-17 21:52:09 +00:00
|
|
|
sudo apt-get install -y g++-8;
|
2018-07-13 17:47:49 +00:00
|
|
|
CC=gcc-8 && CXX=g++-8;
|
|
|
|
fi
|
2019-12-17 21:52:09 +00:00
|
|
|
- if [ "${JOB_NAME}" == cmake-mingw ]; then
|
|
|
|
sudo apt-get install -y mingw-w64 ;
|
|
|
|
fi
|
2017-11-28 20:13:20 +00:00
|
|
|
- if [[ "${JOB_NAME}" == cmake* ]] && [ "${TRAVIS_OS_NAME}" == linux ]; then
|
2020-03-11 19:31:06 +00:00
|
|
|
CMAKE_DIST_URL="https://github.com/pdillinger/rocksdb/releases/download/cmake-3.14.5/cmake-3.14.5-Linux-$(uname -m).tar.bz2";
|
|
|
|
TAR_OPT="--strip-components=1 -xj";
|
|
|
|
mkdir cmake-dist && curl --silent --fail --show-error --location "${CMAKE_DIST_URL}" | tar -C cmake-dist ${TAR_OPT} && export PATH=$PWD/cmake-dist/bin:$PATH;
|
2019-06-17 17:15:58 +00:00
|
|
|
fi
|
2020-03-11 19:31:06 +00:00
|
|
|
- if [[ "${JOB_NAME}" == java_test || "${JOB_NAME}" == cmake* ]]; then
|
2019-06-17 17:15:58 +00:00
|
|
|
java -version && echo "JAVA_HOME=${JAVA_HOME}";
|
2017-11-28 20:13:20 +00:00
|
|
|
fi
|
2016-04-13 21:22:29 +00:00
|
|
|
|
2015-09-10 01:53:55 +00:00
|
|
|
before_script:
|
2017-05-30 17:32:16 +00:00
|
|
|
# Increase the maximum number of open file descriptors, since some tests use
|
|
|
|
# more FDs than the default limit.
|
|
|
|
- ulimit -n 8192
|
2015-09-10 00:55:33 +00:00
|
|
|
|
2015-09-18 17:15:02 +00:00
|
|
|
script:
|
2017-01-09 21:45:04 +00:00
|
|
|
- ${CXX} --version
|
2017-10-11 05:13:39 +00:00
|
|
|
- if [ `command -v ccache` ]; then ccache -C; fi
|
2018-07-13 17:47:49 +00:00
|
|
|
- case $TEST_GROUP in
|
|
|
|
platform_dependent)
|
|
|
|
OPT=-DTRAVIS V=1 ROCKSDBTESTS_END=db_block_cache_test make -j4 all_but_some_tests check_some
|
|
|
|
;;
|
|
|
|
1)
|
2019-11-07 17:49:41 +00:00
|
|
|
OPT=-DTRAVIS V=1 ROCKSDBTESTS_START=db_block_cache_test ROCKSDBTESTS_END=db_iter_test make -j4 check_some
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
2)
|
2020-02-20 20:07:53 +00:00
|
|
|
OPT="-DTRAVIS -DROCKSDB_NAMESPACE=alternative_rocksdb_ns" V=1 make -j4 tools && OPT="-DTRAVIS -DROCKSDB_NAMESPACE=alternative_rocksdb_ns" V=1 ROCKSDBTESTS_START=db_iter_test ROCKSDBTESTS_END=options_file_test make -j4 check_some
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
3)
|
2019-11-07 17:49:41 +00:00
|
|
|
OPT=-DTRAVIS V=1 ROCKSDBTESTS_START=options_file_test ROCKSDBTESTS_END=write_prepared_transaction_test make -j4 check_some
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
4)
|
|
|
|
OPT=-DTRAVIS V=1 ROCKSDBTESTS_START=write_prepared_transaction_test make -j4 check_some
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
- case $JOB_NAME in
|
|
|
|
java_test)
|
2019-06-17 17:15:58 +00:00
|
|
|
OPT=-DTRAVIS V=1 make rocksdbjava jtest
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
lite_build)
|
|
|
|
OPT='-DTRAVIS -DROCKSDB_LITE' V=1 make -j4 static_lib tools
|
|
|
|
;;
|
|
|
|
examples)
|
|
|
|
OPT=-DTRAVIS V=1 make -j4 static_lib && cd examples && make -j4
|
|
|
|
;;
|
|
|
|
cmake-mingw)
|
2019-06-17 17:15:58 +00:00
|
|
|
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix;
|
2019-12-13 19:33:59 +00:00
|
|
|
mkdir build && cd build && cmake -DJNI=1 -DWITH_GFLAGS=OFF .. -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DCMAKE_SYSTEM_NAME=Windows && make -j4 rocksdb rocksdbjni
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
cmake*)
|
|
|
|
mkdir build && cd build && cmake -DJNI=1 .. -DCMAKE_BUILD_TYPE=Release && make -j4 rocksdb rocksdbjni
|
|
|
|
;;
|
|
|
|
esac
|
2014-05-14 23:08:02 +00:00
|
|
|
notifications:
|
2015-09-10 03:30:00 +00:00
|
|
|
email:
|
|
|
|
- leveldb@fb.com
|