mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
56947de18a
* Revert "Reverted bad modification #2035" This reverts commit6d6eca5e23
. * spaces * fix * better * Revert "Disabled ill-formed test #2035" This reverts commitb28cef9871
. * debug * fix * fix * fix * fix * fix * fix * clean * Tests compile fix * fix * Try fix ssl * version * Test fixes, ./release now uses pbuilder by default * fix
41 lines
1.4 KiB
Bash
Executable File
41 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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
|
|
|
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
set -e
|
|
set -x
|
|
|
|
date
|
|
|
|
# clean not used ~600mb
|
|
[ -n "$TRAVIS" ] && rm -rf .git contrib/poco/openssl
|
|
|
|
ccache -s
|
|
ccache -M ${CCACHE_SIZE:=4G}
|
|
df -h
|
|
|
|
date
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake $CUR_DIR/../.. -DCMAKE_CXX_COMPILER=`which $DEB_CXX $CXX` -DCMAKE_C_COMPILER=`which $DEB_CC $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 -DENABLE_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=1} ] && ( ( cd $CUR_DIR/../.. && env TEST_OPT="--skip long compile 00428 $TEST_OPT" bash -x dbms/tests/clickhouse-test-server ) || ${TEST_TRUE=false} ) || true )
|
|
|
|
date
|