2018-03-14 23:04:35 +00:00
#!/bin/bash
CUR_DIR = $( cd " $( dirname " ${ BASH_SOURCE [0] } " ) " && pwd )
2018-01-15 18:57:10 +00:00
2018-01-19 17:23:07 +00:00
# env CXX=clang++-5.0 CC=clang-5.0 DH_VERBOSE=1 utils/travis/pbuilder.sh
2018-01-15 18:57:10 +00:00
set -e
set -x
2018-01-16 13:44:45 +00:00
df -h
2018-02-08 14:38:36 +00:00
date
env TEST_RUN = ${ TEST_RUN =1 } \
2018-05-28 20:38:46 +00:00
TEST_PORT_RANDOM = \
2018-01-15 18:57:10 +00:00
` # Skip tests:` \
` # 00416 requires patched poco from contrib/` \
2018-02-13 18:00:06 +00:00
TEST_OPT = " --skip long pocopatch $TEST_OPT " \
2018-03-14 23:04:35 +00:00
TEST_SSL = "" ` # <Error> Application: SSL context exception: Error loading certificate from file /etc/clickhouse-server/server.crt: No error -- when using system poco on artful` \
2018-02-08 14:38:36 +00:00
TEST_TRUE = ${ TEST_TRUE =false } \
2018-01-15 18:57:10 +00:00
` # travisci will not upload ccache cache after timeout (48min), use our less timeout` \
2018-02-09 15:46:30 +00:00
PBUILDER_OPT = " --timeout ${ PBUILDER_TIMEOUT : =35m } $PBUILDER_OPT " \
2018-04-16 21:13:17 +00:00
` # clang is faster than gcc` \
2018-02-08 16:41:30 +00:00
DEB_CC = ${ DEB_CC = $CC } DEB_CXX = ${ DEB_CXX = $CXX } \
2018-02-13 19:39:21 +00:00
CCACHE_SIZE = ${ CCACHE_SIZE : =4G } \
2018-01-15 18:57:10 +00:00
` # Disable all features` \
2018-05-17 17:55:07 +00:00
CMAKE_FLAGS = " -DCMAKE_BUILD_TYPE=Debug -DUNBUNDLED=1 -DENABLE_UNWIND=0 -DENABLE_MYSQL=0 -DENABLE_CAPNP=0 -DENABLE_RDKAFKA=0 -DUSE_INTERNAL_LLVM_LIBRARY=0 -DCMAKE_C_FLAGS_ADD='-O0 -g0' -DCMAKE_CXX_FLAGS_ADD='-O0 -g0' $CMAKE_FLAGS " \
2018-01-15 18:57:10 +00:00
` # Use all possible contrib libs from system` \
` # psmisc - killall` \
2018-05-07 15:59:52 +00:00
EXTRAPACKAGES = " psmisc clang-5.0 lld-5.0 liblld-5.0-dev libclang-5.0-dev liblld-5.0 libc++abi-dev libc++-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev zlib1g-dev liblz4-dev libdouble-conversion-dev libsparsehash-dev librdkafka-dev libpoco-dev libsparsehash-dev libgoogle-perftools-dev libzstd-dev libre2-dev $EXTRAPACKAGES " \
2018-05-10 12:31:30 +00:00
` # Travis trusty cant unpack bionic: E: debootstrap failed, TODO: check again, can be fixed` \
DIST = ${ DIST =artful } \
2018-03-14 23:04:35 +00:00
$CUR_DIR /../../release $RELEASE_OPT
2018-02-08 14:38:36 +00:00
date