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
|
2020-03-11 19:31:06 +00:00
|
|
|
arch:
|
2020-03-13 03:58:26 +00:00
|
|
|
- arm64
|
2020-03-11 19:31:06 +00:00
|
|
|
- ppc64le
|
2017-06-05 22:34:40 +00:00
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
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:
|
2021-01-11 18:29:15 +00:00
|
|
|
update: true
|
2018-07-13 17:47:49 +00:00
|
|
|
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
|
|
|
|
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
|
2020-04-20 20:21:34 +00:00
|
|
|
- JOB_NAME=cmake-gcc9 # 3-5 minutes
|
|
|
|
- JOB_NAME=cmake-gcc9-c++20 # 3-5 minutes
|
2017-05-30 17:32:16 +00:00
|
|
|
- JOB_NAME=cmake-mingw # 3 minutes
|
2020-06-03 18:37:12 +00:00
|
|
|
- JOB_NAME=make-gcc4.8
|
2020-05-22 18:15:44 +00:00
|
|
|
- JOB_NAME=status_checked
|
2015-09-10 01:53:55 +00:00
|
|
|
|
2017-01-09 21:45:04 +00:00
|
|
|
matrix:
|
|
|
|
exclude:
|
2020-03-13 03:58:26 +00:00
|
|
|
- os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake-mingw
|
2020-06-03 18:37:12 +00:00
|
|
|
- os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=make-gcc4.8
|
2020-03-11 19:31:06 +00:00
|
|
|
- os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=cmake-mingw
|
2020-06-03 18:37:12 +00:00
|
|
|
- os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=make-gcc4.8
|
2020-03-11 19:31:06 +00:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2021-04-20 03:05:56 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=platform_dependent
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=1
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: TEST_GROUP=1
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=2
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: TEST_GROUP=2
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=3
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: TEST_GROUP=3
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=4
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: TEST_GROUP=4
|
2021-04-20 03:05:56 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/ AND commit_message !~ /java/
|
2020-03-19 19:49:58 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
2020-03-20 20:14:10 +00:00
|
|
|
env: JOB_NAME=java_test
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/ AND commit_message !~ /java/
|
2020-03-19 19:49:58 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
2020-03-20 20:14:10 +00:00
|
|
|
env: JOB_NAME=java_test
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
2020-03-20 20:14:10 +00:00
|
|
|
env: JOB_NAME=lite_build
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
2020-03-20 20:14:10 +00:00
|
|
|
env: JOB_NAME=lite_build
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=examples
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=examples
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake-gcc8
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 19:49:58 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=cmake-gcc8
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-04-20 20:21:34 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake-gcc9
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-04-20 20:21:34 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=cmake-gcc9
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-04-20 20:21:34 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake-gcc9-c++20
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-04-20 20:21:34 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=cmake-gcc9-c++20
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-05-22 18:15:44 +00:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=status_checked
|
2020-09-08 22:10:28 +00:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-05-22 18:15:44 +00:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=status_checked
|
2020-03-11 19:31:06 +00:00
|
|
|
|
2017-05-30 17:32:16 +00:00
|
|
|
install:
|
2018-07-13 17:47:49 +00:00
|
|
|
- if [ "${JOB_NAME}" == cmake-gcc8 ]; then
|
2020-08-20 17:36:49 +00:00
|
|
|
sudo apt-get install -y g++-8 || exit $?;
|
2018-07-13 17:47:49 +00:00
|
|
|
CC=gcc-8 && CXX=g++-8;
|
|
|
|
fi
|
2020-04-20 20:21:34 +00:00
|
|
|
- if [ "${JOB_NAME}" == cmake-gcc9 ] || [ "${JOB_NAME}" == cmake-gcc9-c++20 ]; then
|
2020-08-20 17:36:49 +00:00
|
|
|
sudo apt-get install -y g++-9 || exit $?;
|
2020-04-20 20:21:34 +00:00
|
|
|
CC=gcc-9 && CXX=g++-9;
|
|
|
|
fi
|
2019-12-17 21:52:09 +00:00
|
|
|
- if [ "${JOB_NAME}" == cmake-mingw ]; then
|
2020-08-20 17:36:49 +00:00
|
|
|
sudo apt-get install -y mingw-w64 || exit $?;
|
2019-12-17 21:52:09 +00:00
|
|
|
fi
|
2020-06-03 18:37:12 +00:00
|
|
|
- if [ "${JOB_NAME}" == make-gcc4.8 ]; then
|
2020-08-20 17:36:49 +00:00
|
|
|
sudo apt-get install -y g++-4.8 || exit $?;
|
2020-06-03 18:37:12 +00:00
|
|
|
CC=gcc-4.8 && CXX=g++-4.8;
|
|
|
|
fi
|
2021-01-11 18:29:15 +00:00
|
|
|
- |
|
|
|
|
if [[ "${JOB_NAME}" == cmake* ]]; then
|
|
|
|
sudo apt-get remove -y cmake cmake-data
|
|
|
|
export CMAKE_DEB="cmake-3.14.5-Linux-$(uname -m).deb"
|
|
|
|
export CMAKE_DEB_URL="https://rocksdb-deps.s3-us-west-2.amazonaws.com/cmake/${CMAKE_DEB}"
|
|
|
|
curl --silent --fail --show-error --location --output "${CMAKE_DEB}" "${CMAKE_DEB_URL}" || exit $?
|
|
|
|
sudo dpkg -i "${CMAKE_DEB}" || exit $?
|
|
|
|
which cmake && cmake --version
|
2019-06-17 17:15:58 +00:00
|
|
|
fi
|
2020-03-12 19:22:03 +00:00
|
|
|
- |
|
|
|
|
if [[ "${JOB_NAME}" == java_test || "${JOB_NAME}" == cmake* ]]; then
|
|
|
|
# Ensure JDK 8
|
2021-01-11 18:29:15 +00:00
|
|
|
sudo apt-get install -y openjdk-8-jdk || exit $?
|
|
|
|
export PATH=/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture)/bin:$PATH
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture)
|
2020-03-12 19:22:03 +00:00
|
|
|
echo "JAVA_HOME=${JAVA_HOME}"
|
|
|
|
which java && java -version
|
|
|
|
which javac && javac -version
|
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:
|
2020-04-04 17:00:31 +00:00
|
|
|
- date; ${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)
|
2021-03-09 01:19:45 +00:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 ROCKSDBTESTS_PLATFORM_DEPENDENT=only make -j4 all_but_some_tests check_some
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
1)
|
2021-03-09 01:19:45 +00:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 ROCKSDBTESTS_PLATFORM_DEPENDENT=exclude ROCKSDBTESTS_END=backupable_db_test make -j4 check_some
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
2)
|
2021-03-09 01:19:45 +00:00
|
|
|
OPT="-DTRAVIS -DROCKSDB_NAMESPACE=alternative_rocksdb_ns" LIB_MODE=shared V=1 make -j4 tools && OPT="-DTRAVIS -DROCKSDB_NAMESPACE=alternative_rocksdb_ns" LIB_MODE=shared V=1 ROCKSDBTESTS_PLATFORM_DEPENDENT=exclude ROCKSDBTESTS_START=backupable_db_test ROCKSDBTESTS_END=db_universal_compaction_test make -j4 check_some
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
3)
|
2020-09-09 16:48:14 +00:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 ROCKSDBTESTS_PLATFORM_DEPENDENT=exclude ROCKSDBTESTS_START=db_universal_compaction_test ROCKSDBTESTS_END=table_properties_collector_test make -j4 check_some
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
4)
|
2021-03-09 01:19:45 +00:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 ROCKSDBTESTS_PLATFORM_DEPENDENT=exclude ROCKSDBTESTS_START=table_properties_collector_test make -j4 check_some
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
- case $JOB_NAME in
|
|
|
|
java_test)
|
2021-03-09 01:19:45 +00:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 make rocksdbjava jtest
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
lite_build)
|
2021-03-09 01:19:45 +00:00
|
|
|
OPT='-DTRAVIS -DROCKSDB_LITE' LIB_MODE=shared V=1 make -j4 all
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
examples)
|
2021-03-09 01:19:45 +00:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 make -j4 static_lib && cd examples && make -j4
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
|
|
|
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*)
|
2020-04-20 20:21:34 +00:00
|
|
|
case $JOB_NAME in
|
|
|
|
*-c++20)
|
|
|
|
OPT=-DCMAKE_CXX_STANDARD=20
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2020-06-04 01:18:38 +00:00
|
|
|
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=0 -DWITH_GFLAGS=0 -DWITH_BENCHMARK_TOOLS=0 -DWITH_TOOLS=0 -DWITH_CORE_TOOLS=1 .. && make -j4 && cd .. && rm -rf build && mkdir build && cd build && cmake -DJNI=1 .. -DCMAKE_BUILD_TYPE=Release $OPT && make -j4 rocksdb rocksdbjni
|
2018-07-13 17:47:49 +00:00
|
|
|
;;
|
2020-06-03 18:37:12 +00:00
|
|
|
make-gcc4.8)
|
2021-03-09 01:19:45 +00:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 SKIP_LINK=1 make -j4 all && [ "Linking broken because libgflags compiled with newer ABI" ]
|
2020-06-03 18:37:12 +00:00
|
|
|
;;
|
2020-05-22 18:15:44 +00:00
|
|
|
status_checked)
|
2021-03-09 01:19:45 +00:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 ASSERT_STATUS_CHECKED=1 make -j4 check_some
|
2020-05-22 18:15:44 +00:00
|
|
|
;;
|
2018-07-13 17:47:49 +00:00
|
|
|
esac
|
2014-05-14 23:08:02 +00:00
|
|
|
notifications:
|
2015-09-10 03:30:00 +00:00
|
|
|
email:
|
|
|
|
- leveldb@fb.com
|