2019-06-17 19:15:58 +02:00
|
|
|
dist: xenial
|
2014-05-11 06:18:23 +02:00
|
|
|
language: cpp
|
2016-04-13 00:05:56 +02:00
|
|
|
os:
|
2016-06-30 23:34:50 +02:00
|
|
|
- linux
|
2020-03-11 20:31:06 +01:00
|
|
|
arch:
|
2020-03-13 04:58:26 +01:00
|
|
|
- arm64
|
2020-03-11 20:31:06 +01:00
|
|
|
- ppc64le
|
2017-06-06 00:34:40 +02:00
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
2017-01-09 22:45:04 +01:00
|
|
|
cache:
|
|
|
|
- ccache
|
2015-09-10 02:55:33 +02:00
|
|
|
|
2016-04-13 00:05:56 +02:00
|
|
|
addons:
|
2018-07-13 19:47:49 +02:00
|
|
|
apt:
|
2021-01-11 19:29:15 +01:00
|
|
|
update: true
|
2018-07-13 19:47:49 +02:00
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- libgflags-dev
|
2019-12-17 22:52:09 +01:00
|
|
|
- libbz2-dev
|
|
|
|
- liblz4-dev
|
2018-07-13 19:47:49 +02:00
|
|
|
- libsnappy-dev
|
2019-12-17 22:52:09 +01:00
|
|
|
- liblzma-dev # xv
|
|
|
|
- libzstd-dev
|
2018-07-13 19:47:49 +02:00
|
|
|
- zlib1g-dev
|
2019-12-17 22:52:09 +01:00
|
|
|
|
2016-04-13 00:05:56 +02:00
|
|
|
env:
|
2017-05-30 19:32:16 +02:00
|
|
|
- TEST_GROUP=platform_dependent # 16-18 minutes
|
|
|
|
- TEST_GROUP=1 # 33-35 minutes
|
2018-03-14 02:47:38 +01:00
|
|
|
- TEST_GROUP=2 # 18-20 minutes
|
|
|
|
- TEST_GROUP=3 # 20-22 minutes
|
|
|
|
- TEST_GROUP=4 # 12-14 minutes
|
2016-04-13 23:22:29 +02:00
|
|
|
# Run java tests
|
2017-05-30 19:32:16 +02:00
|
|
|
- JOB_NAME=java_test # 4-11 minutes
|
2016-04-13 23:22:29 +02:00
|
|
|
# Build ROCKSDB_LITE
|
2017-05-30 19:32:16 +02:00
|
|
|
- JOB_NAME=lite_build # 3-4 minutes
|
2017-04-07 19:36:09 +02:00
|
|
|
# Build examples
|
2017-05-30 19:32:16 +02:00
|
|
|
- JOB_NAME=examples # 5-7 minutes
|
|
|
|
- JOB_NAME=cmake # 3-5 minutes
|
2018-07-13 19:47:49 +02:00
|
|
|
- JOB_NAME=cmake-gcc8 # 3-5 minutes
|
2020-04-20 22:21:34 +02:00
|
|
|
- JOB_NAME=cmake-gcc9 # 3-5 minutes
|
|
|
|
- JOB_NAME=cmake-gcc9-c++20 # 3-5 minutes
|
2017-05-30 19:32:16 +02:00
|
|
|
- JOB_NAME=cmake-mingw # 3 minutes
|
2020-06-03 20:37:12 +02:00
|
|
|
- JOB_NAME=make-gcc4.8
|
2020-05-22 20:15:44 +02:00
|
|
|
- JOB_NAME=status_checked
|
2015-09-10 03:53:55 +02:00
|
|
|
|
2017-01-09 22:45:04 +01:00
|
|
|
matrix:
|
|
|
|
exclude:
|
2020-03-13 04:58:26 +01:00
|
|
|
- os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake-mingw
|
2020-06-03 20:37:12 +02:00
|
|
|
- os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=make-gcc4.8
|
2020-03-11 20:31:06 +01:00
|
|
|
- os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=cmake-mingw
|
2020-06-03 20:37:12 +02:00
|
|
|
- os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=make-gcc4.8
|
2020-03-11 20:31:06 +01:00
|
|
|
- os: linux
|
|
|
|
compiler: clang
|
2021-04-20 05:05:56 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=platform_dependent
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=1
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: TEST_GROUP=1
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=2
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: TEST_GROUP=2
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=3
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: TEST_GROUP=3
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: TEST_GROUP=4
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: TEST_GROUP=4
|
2021-04-20 05:05:56 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/ AND commit_message !~ /java/
|
2020-03-19 20:49:58 +01:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
2020-03-20 21:14:10 +01:00
|
|
|
env: JOB_NAME=java_test
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/ AND commit_message !~ /java/
|
2020-03-19 20:49:58 +01:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
2020-03-20 21:14:10 +01:00
|
|
|
env: JOB_NAME=java_test
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
2020-03-20 21:14:10 +01:00
|
|
|
env: JOB_NAME=lite_build
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
2020-03-20 21:14:10 +01:00
|
|
|
env: JOB_NAME=lite_build
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=examples
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=examples
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake-gcc8
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-03-19 20:49:58 +01:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=cmake-gcc8
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-04-20 22:21:34 +02:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake-gcc9
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-04-20 22:21:34 +02:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=cmake-gcc9
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-04-20 22:21:34 +02:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=cmake-gcc9-c++20
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-04-20 22:21:34 +02:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=cmake-gcc9-c++20
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-05-22 20:15:44 +02:00
|
|
|
os : linux
|
|
|
|
arch: arm64
|
|
|
|
env: JOB_NAME=status_checked
|
2020-09-09 00:10:28 +02:00
|
|
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
2020-05-22 20:15:44 +02:00
|
|
|
os: linux
|
|
|
|
arch: ppc64le
|
|
|
|
env: JOB_NAME=status_checked
|
2020-03-11 20:31:06 +01:00
|
|
|
|
2017-05-30 19:32:16 +02:00
|
|
|
install:
|
2018-07-13 19:47:49 +02:00
|
|
|
- if [ "${JOB_NAME}" == cmake-gcc8 ]; then
|
2020-08-20 19:36:49 +02:00
|
|
|
sudo apt-get install -y g++-8 || exit $?;
|
2018-07-13 19:47:49 +02:00
|
|
|
CC=gcc-8 && CXX=g++-8;
|
|
|
|
fi
|
2020-04-20 22:21:34 +02:00
|
|
|
- if [ "${JOB_NAME}" == cmake-gcc9 ] || [ "${JOB_NAME}" == cmake-gcc9-c++20 ]; then
|
2020-08-20 19:36:49 +02:00
|
|
|
sudo apt-get install -y g++-9 || exit $?;
|
2020-04-20 22:21:34 +02:00
|
|
|
CC=gcc-9 && CXX=g++-9;
|
|
|
|
fi
|
2019-12-17 22:52:09 +01:00
|
|
|
- if [ "${JOB_NAME}" == cmake-mingw ]; then
|
2020-08-20 19:36:49 +02:00
|
|
|
sudo apt-get install -y mingw-w64 || exit $?;
|
2019-12-17 22:52:09 +01:00
|
|
|
fi
|
2020-06-03 20:37:12 +02:00
|
|
|
- if [ "${JOB_NAME}" == make-gcc4.8 ]; then
|
2020-08-20 19:36:49 +02:00
|
|
|
sudo apt-get install -y g++-4.8 || exit $?;
|
2020-06-03 20:37:12 +02:00
|
|
|
CC=gcc-4.8 && CXX=g++-4.8;
|
|
|
|
fi
|
2021-01-11 19:29:15 +01: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 19:15:58 +02:00
|
|
|
fi
|
2020-03-12 20:22:03 +01:00
|
|
|
- |
|
|
|
|
if [[ "${JOB_NAME}" == java_test || "${JOB_NAME}" == cmake* ]]; then
|
|
|
|
# Ensure JDK 8
|
2021-01-11 19:29:15 +01: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 20:22:03 +01:00
|
|
|
echo "JAVA_HOME=${JAVA_HOME}"
|
|
|
|
which java && java -version
|
|
|
|
which javac && javac -version
|
2017-11-28 21:13:20 +01:00
|
|
|
fi
|
2016-04-13 23:22:29 +02:00
|
|
|
|
2015-09-10 03:53:55 +02:00
|
|
|
before_script:
|
2017-05-30 19:32:16 +02: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 02:55:33 +02:00
|
|
|
|
2015-09-18 19:15:02 +02:00
|
|
|
script:
|
2020-04-04 19:00:31 +02:00
|
|
|
- date; ${CXX} --version
|
2017-10-11 07:13:39 +02:00
|
|
|
- if [ `command -v ccache` ]; then ccache -C; fi
|
2018-07-13 19:47:49 +02:00
|
|
|
- case $TEST_GROUP in
|
|
|
|
platform_dependent)
|
2021-03-09 02:19:45 +01:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 ROCKSDBTESTS_PLATFORM_DEPENDENT=only make -j4 all_but_some_tests check_some
|
2018-07-13 19:47:49 +02:00
|
|
|
;;
|
|
|
|
1)
|
2021-03-09 02:19:45 +01:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 ROCKSDBTESTS_PLATFORM_DEPENDENT=exclude ROCKSDBTESTS_END=backupable_db_test make -j4 check_some
|
2018-07-13 19:47:49 +02:00
|
|
|
;;
|
|
|
|
2)
|
2021-03-09 02:19:45 +01: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 19:47:49 +02:00
|
|
|
;;
|
|
|
|
3)
|
2020-09-09 18:48:14 +02: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 19:47:49 +02:00
|
|
|
;;
|
|
|
|
4)
|
2021-03-09 02:19:45 +01: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 19:47:49 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
- case $JOB_NAME in
|
|
|
|
java_test)
|
2021-03-09 02:19:45 +01:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 make rocksdbjava jtest
|
2018-07-13 19:47:49 +02:00
|
|
|
;;
|
|
|
|
lite_build)
|
2021-03-09 02:19:45 +01:00
|
|
|
OPT='-DTRAVIS -DROCKSDB_LITE' LIB_MODE=shared V=1 make -j4 all
|
2018-07-13 19:47:49 +02:00
|
|
|
;;
|
|
|
|
examples)
|
2021-03-09 02:19:45 +01:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 make -j4 static_lib && cd examples && make -j4
|
2018-07-13 19:47:49 +02:00
|
|
|
;;
|
|
|
|
cmake-mingw)
|
2019-06-17 19:15:58 +02:00
|
|
|
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix;
|
2019-12-13 20:33:59 +01: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 19:47:49 +02:00
|
|
|
;;
|
|
|
|
cmake*)
|
2020-04-20 22:21:34 +02:00
|
|
|
case $JOB_NAME in
|
|
|
|
*-c++20)
|
|
|
|
OPT=-DCMAKE_CXX_STANDARD=20
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2020-06-04 03:18:38 +02: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 19:47:49 +02:00
|
|
|
;;
|
2020-06-03 20:37:12 +02:00
|
|
|
make-gcc4.8)
|
2021-03-09 02:19:45 +01: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 20:37:12 +02:00
|
|
|
;;
|
2020-05-22 20:15:44 +02:00
|
|
|
status_checked)
|
2021-03-09 02:19:45 +01:00
|
|
|
OPT=-DTRAVIS LIB_MODE=shared V=1 ASSERT_STATUS_CHECKED=1 make -j4 check_some
|
2020-05-22 20:15:44 +02:00
|
|
|
;;
|
2018-07-13 19:47:49 +02:00
|
|
|
esac
|
2014-05-15 01:08:02 +02:00
|
|
|
notifications:
|
2015-09-10 05:30:00 +02:00
|
|
|
email:
|
|
|
|
- leveldb@fb.com
|