WIP: Support clickhouse #1664

Closed
lunny wants to merge 4 commits from lunny/clickhouse into master
2 changed files with 36 additions and 4 deletions
Showing only changes of commit bc2eaaacbd - Show all commits

View File

@ -278,8 +278,6 @@ steps:
TEST_TIDB_PASSWORD:
commands:
- make test-tidb
- TEST_CACHE_ENABLE=true make test-tidb
- TEST_QUOTE_POLICY=reserved make test-tidb
volumes:
- name: cache
@ -314,7 +312,6 @@ steps:
commands:
- sleep 10
- make test-cockroach
- TEST_CACHE_ENABLE=true make test-cockroach
volumes:
- name: cache
@ -327,6 +324,40 @@ services:
commands:
- /cockroach/cockroach start --insecure
---
kind: pipeline
name: test-clickhouse
depends_on:
- test-cockroach
trigger:
ref:
- refs/heads/master
- refs/pull/*/head
steps:
- name: test-clickhouse
pull: never
image: golang:1.15
volumes:
- name: cache
path: /go/pkg/mod
environment:
TEST_CLICKHOUSE_HOST: "clickhouse:9000"
TEST_CLICKHOUSE_DBNAME: xorm_test
TEST_CLICKHOUSE_USERNAME: root
TEST_CLICKHOUSE_PASSWORD:
commands:
- sleep 10
- make test-clickhouse
volumes:
- name: cache
host:
path: /tmp/cache
services:
- name: clickhouse
image: yandex/clickhouse-server:21.7.4.18
---
kind: pipeline
name: merge_coverage
@ -338,6 +369,7 @@ depends_on:
- test-mssql
- test-tidb
- test-cockroach
- test-clickhouse
trigger:
ref:
- refs/heads/master

View File

@ -43,7 +43,7 @@ TEST_TIDB_DBNAME ?= xorm_test
TEST_TIDB_USERNAME ?= root
TEST_TIDB_PASSWORD ?=
TEST_CLICKHOUSE_HOST ?= clickhouse:9000
TEST_CLICKHOUSE_HOST ?= clickhouse:8123
TEST_CLICKHOUSE_DBNAME ?= xorm_test
TEST_CLICKHOUSE_USERNAME ?= root
TEST_CLICKHOUSE_PASSWORD ?=