WIP: Support clickhouse #1664
38
.drone.yml
38
.drone.yml
@ -278,8 +278,6 @@ steps:
|
|||||||
TEST_TIDB_PASSWORD:
|
TEST_TIDB_PASSWORD:
|
||||||
commands:
|
commands:
|
||||||
- make test-tidb
|
- make test-tidb
|
||||||
- TEST_CACHE_ENABLE=true make test-tidb
|
|
||||||
- TEST_QUOTE_POLICY=reserved make test-tidb
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
@ -314,7 +312,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- sleep 10
|
- sleep 10
|
||||||
- make test-cockroach
|
- make test-cockroach
|
||||||
- TEST_CACHE_ENABLE=true make test-cockroach
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
@ -327,6 +324,40 @@ services:
|
|||||||
commands:
|
commands:
|
||||||
- /cockroach/cockroach start --insecure
|
- /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
|
kind: pipeline
|
||||||
name: merge_coverage
|
name: merge_coverage
|
||||||
@ -338,6 +369,7 @@ depends_on:
|
|||||||
- test-mssql
|
- test-mssql
|
||||||
- test-tidb
|
- test-tidb
|
||||||
- test-cockroach
|
- test-cockroach
|
||||||
|
- test-clickhouse
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
|
2
Makefile
2
Makefile
@ -43,7 +43,7 @@ TEST_TIDB_DBNAME ?= xorm_test
|
|||||||
TEST_TIDB_USERNAME ?= root
|
TEST_TIDB_USERNAME ?= root
|
||||||
TEST_TIDB_PASSWORD ?=
|
TEST_TIDB_PASSWORD ?=
|
||||||
|
|
||||||
TEST_CLICKHOUSE_HOST ?= clickhouse:9000
|
TEST_CLICKHOUSE_HOST ?= clickhouse:8123
|
||||||
TEST_CLICKHOUSE_DBNAME ?= xorm_test
|
TEST_CLICKHOUSE_DBNAME ?= xorm_test
|
||||||
TEST_CLICKHOUSE_USERNAME ?= root
|
TEST_CLICKHOUSE_USERNAME ?= root
|
||||||
TEST_CLICKHOUSE_PASSWORD ?=
|
TEST_CLICKHOUSE_PASSWORD ?=
|
||||||
|
Loading…
Reference in New Issue
Block a user