forked from pingcap/tiflash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try travis * wip * Try travis * try * try * try * try * Revert "try" This reverts commit 7ecd73c2eb255c94acec4830d78c09ecb68ccfaa. * try unbundled * Try unbundled2 * Try undundled3 * Try unbundled4 * Try5 * try gcc7 * try6 * Try clang * Try min * try ccache * try ccache stats * no sudo * try clang * try ccache * reset changelog * Try fix clang * try limit time * Faster * try timeout * try faster * Try * try * try * try * try * try * ccache * Fix * try test * try test * Fix try_listen in some vm's * fix * test * fix * cache timeout * packages * fix * fix * fix * try emb compiler * Try emb compiler * Revert "try emb compiler" This reverts commit 471713cabe5f111debbb4ba8252d5a8336bdecda. * try * Revert "Try emb compiler" This reverts commit 95e632abf676840ded0bb8da945014a13b377978. * Skip long * fix * fix * ccache * fix * debug * Fxi test * test fix * tes fix * Fix * Fix link * Fix odbc link * Fxi test * fix boost unbundled include * fix test * fix test * test fix * fix tests * tests * Test fail
- Loading branch information
1 parent
07931ca
commit f6d8436
Showing
46 changed files
with
294 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
language: cpp | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
|
||
cache: | ||
ccache: true | ||
timeout: 1000 | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: [ g++-7, libicu-dev, libreadline-dev, libmysqlclient-dev, unixodbc-dev, libltdl-dev, libssl-dev, libboost-dev, zlib1g-dev, libdouble-conversion-dev, libzookeeper-mt-dev, libsparsehash-dev, librdkafka-dev, libcapnp-dev, libsparsehash-dev, libgoogle-perftools-dev, bash, expect, python, python-lxml, python-termcolor, curl, perl, sudo ] | ||
env: | ||
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" | ||
|
||
script: | ||
- utils/travis/normal.sh | ||
|
||
|
||
# We need to have gcc7 headers to compile c++17 code on clang | ||
- os: linux | ||
|
||
cache: | ||
ccache: true | ||
timeout: 1000 | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-trusty-5.0 | ||
packages: [ g++-7, clang-5.0, libicu-dev, libreadline-dev, libmysqlclient-dev, unixodbc-dev, libltdl-dev, libssl-dev, libboost-dev, zlib1g-dev, libdouble-conversion-dev, libzookeeper-mt-dev, libsparsehash-dev, librdkafka-dev, libcapnp-dev, libsparsehash-dev, libgoogle-perftools-dev, bash, expect, python, python-lxml, python-termcolor, curl, perl, sudo ] | ||
|
||
env: | ||
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0 | ||
|
||
before_script: | ||
# fix gcc after clang | ||
- export CC=clang-5.0 | ||
- export CXX=clang++-5.0 | ||
|
||
script: | ||
- utils/travis/normal.sh | ||
|
||
|
||
- os: linux | ||
|
||
sudo: required | ||
|
||
cache: | ||
timeout: 1000 | ||
directories: | ||
- /var/cache/pbuilder/ccache | ||
|
||
addons: | ||
apt: | ||
packages: [ pbuilder, fakeroot, debhelper ] | ||
|
||
script: | ||
- utils/travis/pbuilder.sh | ||
|
||
before_install: | ||
- eval "${MATRIX_EVAL}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
ClickHouse is an open-source column-oriented database management system that allows generating analytical data reports in real time. | ||
|
||
[Read more...](https://clickhouse.yandex/) | ||
|
||
[![Build Status](https://travis-ci.org/yandex/ClickHouse.svg?branch=master)](https://travis-ci.org/yandex/ClickHouse) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
set (LTDL_PATHS "/usr/local/opt/libtool/lib") | ||
find_library (LTDL_LIB ltdl PATHS ${LTDL_PATHS}) | ||
message (STATUS "Using ltdl: ${LTDL_LIB}") | ||
find_library (LTDL_LIBRARY ltdl PATHS ${LTDL_PATHS}) | ||
message (STATUS "Using ltdl: ${LTDL_LIBRARY}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<yandex> | ||
<tcp_port>59000</tcp_port> | ||
</yandex> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
dbms/tests/queries/0_stateless/00411_accurate_number_comparison.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | ||
. $CURDIR/../shell_config.sh | ||
|
||
# We should have correct env vars from shell_config.sh to run this test | ||
|
||
python $CURDIR/00411_accurate_number_comparison.python |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0"?> | ||
<yandex> | ||
<logger> | ||
<level>trace</level> | ||
<log>/tmp/clickhouse/log/clickhouse-server.log</log> | ||
<errorlog>/tmp/clickhouse/log/clickhouse-server.err.log</errorlog> | ||
<size>10M</size> | ||
<count>1</count> | ||
</logger> | ||
<http_port>58123</http_port> | ||
<tcp_port>59000</tcp_port> | ||
<interserver_http_port>59009</interserver_http_port> | ||
<keep_alive_timeout>3</keep_alive_timeout> | ||
<path>/tmp/clickhouse/data/</path> | ||
<tmp_path>/tmp/clickhouse/tmp/</tmp_path> | ||
<users_config>users.xml</users_config> | ||
<mark_cache_size>5368709120</mark_cache_size> | ||
<default_profile>default</default_profile> | ||
<default_database>default</default_database> | ||
<timezone>Europe/Moscow</timezone> | ||
<remote_servers incl="clickhouse_remote_servers" > | ||
<!-- Test only shard config for testing distributed storage --> | ||
<test_shard_localhost> | ||
<shard> | ||
<replica> | ||
<host>localhost</host> | ||
<port>59000</port> | ||
</replica> | ||
</shard> | ||
</test_shard_localhost> | ||
</remote_servers> | ||
<zookeeper incl="zookeeper-servers" optional="true" /> | ||
<macros incl="macros" optional="true" /> | ||
<builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval> | ||
<max_session_timeout>3600</max_session_timeout> | ||
<default_session_timeout>60</default_session_timeout> | ||
<query_log> | ||
<database>system</database> | ||
<table>query_log</table> | ||
<flush_interval_milliseconds>7500</flush_interval_milliseconds> | ||
</query_log> | ||
<dictionaries_config>*_dictionary.xml</dictionaries_config> | ||
<compression incl="clickhouse_compression"> | ||
</compression> | ||
<distributed_ddl> | ||
<path>/clickhouse/task_queue/ddl</path> | ||
</distributed_ddl> | ||
<format_schema_path>/tmp/clickhouse/data/format_schemas/</format_schema_path> | ||
</yandex> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
|
||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | ||
ROOTDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && cd ../.. && pwd) | ||
DATADIR=${DATADIR:=/tmp/clickhouse} | ||
LOGDIR=${LOGDIR:=$DATADIR/log} | ||
|
||
rm -rf $DATADIR | ||
|
||
mkdir -p $LOGDIR | ||
|
||
# Start a local clickhouse server which will be used to run tests | ||
#PATH=$PATH:$ROOTDIR/build${BUILD_TYPE}/dbms/src/Server \ | ||
$ROOTDIR/build${BUILD_TYPE}/dbms/src/Server/clickhouse-server --config-file=$CURDIR/server-test.xml > $LOGDIR/stdout 2>&1 & | ||
CH_PID=$! | ||
sleep 3 | ||
|
||
# Define needed stuff to kill test clickhouse server after tests completion | ||
function finish { | ||
kill $CH_PID || true | ||
wait | ||
tail -n 50 $LOGDIR/stdout | ||
rm -rf $DATADIR | ||
} | ||
trap finish EXIT | ||
|
||
# Do tests | ||
export CLICKHOUSE_CONFIG=${CLICKHOUSE_CONFIG:=$CURDIR/server-test.xml} | ||
#cd $CURDIR | ||
if [ -n "$*" ]; then | ||
$* | ||
else | ||
$ROOTDIR/build${BUILD_TYPE}/dbms/src/Server/clickhouse-client --config $CURDIR/client-test.xml -q 'SELECT * from system.build_options;' | ||
PATH=$PATH:$ROOTDIR/build${BUILD_TYPE}/dbms/src/Server \ | ||
$CURDIR/clickhouse-test --binary $ROOTDIR/build${BUILD_TYPE}/dbms/src/Server/clickhouse --clientconfig $CURDIR/client-test.xml --tmp $DATADIR/tmp --queries $CURDIR/queries $TEST_OPT | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src/Server/users.xml |
Oops, something went wrong.