mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-29 13:10:48 +00:00
15e77ec688
Dont test symbols with gdb Travis: add clang6 + ubuntu bionic (disabled) Travis: dont run tests with gcc7 (too long, does not fit to limit) Allow use clang-7 as internal compiler: -DCMAKE_CXX_COMPILER=clang++-7 -DCMAKE_C_COMPILER=clang-7 -DLLVM_VERSION_POSTFIX=-7 Debian: Fix package install (old version can't do service clickhouse disable_cron) Build fixes (ubuntu bionic + clang6.0) Update internal compiler clang6.0 to rc1
36 lines
1.3 KiB
Bash
Executable File
36 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Manual run:
|
|
# env CXX=g++-7 CC=gcc-7 utils/travis/normal.sh
|
|
# env CXX=clang++-5.0 CC=clang-5.0 utils/travis/normal.sh
|
|
|
|
set -e
|
|
set -x
|
|
|
|
TEST_TRUE=${TEST_TRUE:=false}
|
|
TEST_RUN=${TEST_RUN:=true}
|
|
|
|
# clean not used ~600mb
|
|
[ -n "$TRAVIS" ] && rm -rf .git contrib/poco/openssl
|
|
|
|
ccache -s
|
|
ccache -M 4G
|
|
df -h
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. -DCMAKE_CXX_COMPILER=`which $CXX` -DCMAKE_C_COMPILER=`which $CC` \
|
|
`# Does not optimize to speedup build, skip debug info to use less disk` \
|
|
-DCMAKE_C_FLAGS_ADD="-O0 -g0" -DCMAKE_CXX_FLAGS_ADD="-O0 -g0" \
|
|
`# ignore ccache disabler on trusty` \
|
|
-DCMAKE_C_COMPILER_LAUNCHER=`which ccache` -DCMAKE_CXX_COMPILER_LAUNCHER=`which ccache` \
|
|
`# Use all possible contrib libs from system` \
|
|
-DUNBUNDLED=1 \
|
|
`# Disable all features` \
|
|
-DENABLE_CAPNP=0 -DENABLE_RDKAFKA=0 -DUSE_EMBEDDED_COMPILER=0 -DENABLE_TCMALLOC=0 -DENABLE_UNWIND=0 -DENABLE_MYSQL=0 $CMAKE_FLAGS \
|
|
&& make -j `nproc || grep -c ^processor /proc/cpuinfo || sysctl -n hw.ncpu || echo 4` clickhouse-bundle \
|
|
`# Skip tests:` \
|
|
`# 00281 requires internal compiler` \
|
|
`# 00428 requires sudo (not all vms allow this)` \
|
|
&& ( $TEST_RUN && ( ( cd .. && env TEST_OPT="--no-long --no-shard --skip 00281 00428 $TEST_OPT" bash -x dbms/tests/clickhouse-test-server ) || $TEST_TRUE ) || true )
|