forked from tikv/titan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (41 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
dist: xenial
language: cpp
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- libgflags-dev
matrix:
include:
- compiler: clang
env: BUILD_TYPE="Debug"
- compiler: clang
env: BUILD_TYPE="Release"
- compiler: clang
env: SANITIZER="ASAN"
- compiler: clang
env: SANITIZER="TSAN"
- compiler: clang
env: SANITIZER="UBSAN"
- env: COMPILER=gcc8
install:
- git clone --depth=1 --branch=tikv-3.0 https://github.com/pingcap/rocksdb.git
- if [ "${COMPILER}" == gcc8 ]; then
CC=gcc-8 && CXX=g++-8;
fi
- if [ ! -z "${BUILD_TYPE}" ]; then
BUILD_OPT="-DCMAKE_BUILD_TYPE=${BUILD_TYPE}";
fi
- if [ ! -z "${SANITIZER}" ]; then
SANITIZER_OPT="-DWITH_${SANITIZER}=ON" && TOOLS_OPT="-DWITH_TITAN_TOOLS=OFF";
fi
script:
- ${CXX} --version
- echo $BUILD_OPT
- echo $SANITIZER_OPT
- echo $TOOLS_OPT
- cmake . -DROCKSDB_DIR=./rocksdb -DTRAVIS=ON ${BUILD_OPT} ${SANITIZER_OPT} ${TOOLS_OPT} && make -j4 && ctest -R titan